Click or drag to resize

IJVMWrapperDirectNewWithSignature(String, String) Method

Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and no arguments.

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
IJavaObjectBase NewWithSignature(
	string className,
	string signature
)

Parameters

className  String
The class name in the dot or slash form (example are java.lang.Boolean or java/lang/Boolean)
signature  String
The JNI constructor descriptor string that uniquely identifies the target constructor.

Return Value

IJavaObjectBase
A new IJavaObjectBase wrapping the newly created JVM instance.
Exceptions
ExceptionCondition
MissingMethodException Thrown if no constructor matching signature is found on the underlying Java class.
Remarks
Use this overload when multiple constructors share ambiguous argument types and the bridge cannot resolve the correct one automatically. The JNI signature format follows the standard Java descriptor notation, e.g. "()V" for a no-argument constructor.
See Also