Files
javademos/classfile-api/output/10-asm-instrument.txt
T

18 lines
793 B
Plaintext

$ java -cp classes:asm-9.11.1.jar... demo.AsmInstrument (25.0.5+8-LTS)
original 1488 bytes, ASM-instrumented 2152 bytes
PASS ASM output passes ClassFile.verify()
-- ASM AdviceAdapter version (2152 bytes; verify() problems: 0)
PASS ASM AdviceAdapter version: demo.Target here is a different Class object than the one on the class path
boom() threw java.lang.IllegalStateException: boom
explode() threw ArrayIndexOutOfBoundsException
fib recorded 177 call(s)
sumTo recorded 1 call(s)
greet recorded 1 call(s)
pause recorded 1 call(s)
boom recorded 1 call(s)
explode recorded 1 call(s)
PASS ASM version also records both throwing methods once
PASS ASM version: fib recorded 177 times
PASS ASM version: pause(50) recorded as at least 50 ms
exit=0