Display verification error on retransformations

Rafael Winterhalter rafael.wth at gmail.com
Thu Aug 15 21:33:08 UTC 2024


Hello,

if a Java agent fails to retransform due to a verification error (using
Instrumentation.retransformClasses), this error does not contain a message.
This is like it used to be for all verification errors, when a class was
loaded for the first time, but this feature of displaying a message and
byte code was added later. I understand that retransformation might trigger
multiple classes where many of them could be faulty, but even if only the
first error is displayed (and possibly the name of the class in question),
this would be of great help when debugging.

This might not even be the right mailing list for this, but as you are
touching class files and since this API likely will be used to implement
agents, possibly this mail just meets the right people to ask for a
background? Is this a feature that was considered for the JVM?

Thanks, Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/classfile-api-dev/attachments/20240815/2f136ce3/attachment-0001.htm>


More information about the classfile-api-dev mailing list