On Wed, 25 Jun 2025 05:30:18 GMT, Serguei Spitsyn <sspit...@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