Rafael Winterhalter
Rafael Winterhalter
No, unfortunately. Unless if you capture the injection somehow, there is no good way to read the class's class file. But why would you need to instrument these classes? You...
Within the resubmission, the class is loaded already and a type description can be based on that loaded class.
That is expected, the JVM does not allow invokedynamic in a Java 5 class file.
I assume the Byte Buddy advice annotation types are missing from the class loader. Add the class loader that defines Byte Buddy to the transformer.
In the end, Byte Buddy calls the class loader via getResourceAsStream. If either the advice class or the Byte Buddy classes are missing from the class loaders ghat are registered,...
Can you provide a stack trace?
You must be able to call classLoader.getResource("com/tedt/ProcessInplAdvice.class") on some class loader. If this class loader is added to the transformer, everything should work.
That's strange. I'm afraid that I'd need a reproducer to help you further.
You need to update Byte Buddy to a version that supports Java 17.
It should, indeed, but maybe I got it wrong and it was experimental support. It should be straight forward to bump the version.