Verification errors on retransformation
Rafael Winterhalter
rafael.wth at gmail.com
Sun Aug 18 20:35:03 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.
Today the verification error is thrown without a message and this often
makes debugging rather complicated.
Is there a reason this is not supported today? And if not, would it be
possible to add?
Thanks, Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/serviceability-dev/attachments/20240818/921c47f3/attachment-0001.htm>
More information about the serviceability-dev
mailing list