Missing EnclosingMethod attribute in JvmtiClassFileReconstituter.cpp
Manuel Álvarez Álvarez
manuel.alvarezalvarez at datadoghq.com
Tue Feb 14 11:14:54 UTC 2023
Dear all,
When dealing with enclosed classes, frameworks like bytebuddy use the
EnclosingMethod attribute in order to discover generic type argument
bounds. When retransforming a class, the JvmtiClassFileReconstituter.cpp
omits the enclosing attributes (they are available in the java.lang.Class
object) so the bytes received by the transformer are missing the attribute
potentially causing issues downstream.
Are there any strong reasons why these attributes are not written by the
JvmtiClassFileReconstituter?
Kind regards and thank you in advance,
Manuel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/serviceability-dev/attachments/20230214/e53678ab/attachment-0001.htm>
More information about the serviceability-dev
mailing list