How to create new String value in Java JDI?

93 Views Asked by At

I'd like to invoke a method in JDI which has String as a parameter. So first I will have to create a String value(com.sun.jdi.Value) but the only way which comes to my mind is to use the newInstance() method on ClassType, but this method also takes Value as parameter just like the invokeMethod() which I wanted to call in the first place. So I still need a com.sun.jdi.Value to create a String.... But how can I create the String without any com.sun.jdi.Value?

0

There are 0 best solutions below