0

I'm adding support for instrumenting invokedynamic in a concolic engine and the way we currently instrument is by using a custom classloader that finds the resource related to that class in the class path but as the lambda is a synthetic class created on the fly it's not actually there.

Do you know how to instrument invoke dynamic generated classes? I've seen that using agents may be an option but i want to be sure that i can't reuse what I already have.

2
  • 1
    Those generated classes are simple, and just invoke an other method that you probably did already implement. Commented Dec 1, 2020 at 7:44
  • 2
    You can’t instrument those generated classes, neither statically nor using agents, and there’s no point in trying. The body of the lambda expression is not part of the generated class. Commented Dec 1, 2020 at 9:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.