javassist icon indicating copy to clipboard operation
javassist copied to clipboard

can javassist support autoboxing?

Open Venscor opened this issue 3 years ago • 0 comments

Just as the issue mentioned,I also need javassist compiler support autoboxing,so that some primitive types can be automatically change to Object. The demo code that javassist insert is just like this:

 "new Object[]{" + paramString + "}";

paramString is passed from method being hooked, I may be primitive type, e.g. int.class, I hope javassist compilers can support autoboxing so that I can I transfer instance of int.class to instance of Objection in Reflection scenes.

now, unsupporting this feature causes VerifyError, as many blogs mentioned.

Venscor avatar Jun 30 '21 11:06 Venscor