RFR: 8359707: Add classfile modification code to RedefineClassHelper [v2]
Coleen Phillimore
coleenp at openjdk.org
Wed Jun 25 20:37:28 UTC 2025
On Wed, 25 Jun 2025 05:30:18 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
>> `jdk.internal.classfile.components` has a `ClassRemapper` that may serve this purpose. It updates all internal names and occurrences in descriptors.
>
> BTW, I've also noticed this issue with returning 0 but forgot to post my question. This suggestion from Alex looks good to me, at least, if the `ClassRemapper` is tricky to borrow.
ClassRemapper is a nice way to do this but it requires all the tests and the test jar build to use @modules to access it, so I chose a different way with the ClassFile API.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25857#discussion_r2167581218
More information about the serviceability-dev
mailing list