Toolkit not working on reflection methods

I track the execution of Java applications for dynamic analysis of execution traces.

All is well, but when the method is called through reflection. I see a call to Method.invoke , but after that my trace does not contain instructions executed using reflection.

As soon as the program returns to "regular" execution, the program will receive the trace again as usual.

The person who wrote the instrument used the ASM library.

+4
source share
1 answer

I solved my problem. The problem was not with the tools, but with the configuration of the tool, which, incidentally, is open source .

The toolkit worked correctly because it worked by changing the byte code of the methods. Look at the project code to see how the instrumentation should be run.

0
source

Source: https://habr.com/ru/post/1437676/


All Articles