javassist
javassist copied to clipboard
Javaaist will hang the program when casting Integer to int
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.