Returns a new instance of this class by invoking the constructor with the given signature and arguments in the specified thread. The given thread is resumed to perform this method invocation and suspends in its original location when this method invocation is complete. This method does not return until the method invocation is complete. Resuming the specified thread can result in breakpoints being hit, infinite loops, and deadlock.
@param signature the JNI style signature of the method to be invoked
@param args the arguments of the constructor, which can be
null
or empty if there are none
@param thread the thread in which to invoke the constructor
@return the result of invoking the constructor
@exception DebugException if this method fails. Reasons include:
- Failure communicating with the VM. The DebugException's status code contains the underlying exception responsible for the failure.
- This type does not implement the specified constructor
- An exception occurs while invoking the specified constructor
- The given thread is already performing a message send, (status code
IJavaThread.ERR_NESTED_METHOD_INVOCATION
) - The given thread is not currently suspended (status code
IJavaThread.ERR_THREAD_NOT_SUSPENDED
) - The given thread was explicitly suspended (status code
IJavaThread.ERR_INCOMPATIBLE_THREAD_STATE
)