javassist icon indicating copy to clipboard operation
javassist copied to clipboard

Javaaist will hang the program when casting Integer to int

Open lujiefsi opened this issue 3 years ago • 0 comments

I create an method a like: int a () { return 1; } then i instrument taegetMethod: taegetMethod.addLocalVariable("id", classPool.get("java.lang.Integer"));

existsMethod.insertBefore("id=a();");

No error is printed and the progam hangs forever.

lujiefsi avatar Sep 13 '21 10:09 lujiefsi