RFR: 8281266: [JVMCI] MetaUtil.toInternalName() doesn't handle hidden classes correctly
Dalibor Topic
robilad at openjdk.java.net
Fri Feb 18 19:24:30 UTC 2022
On Fri, 4 Feb 2022 12:01:46 GMT, Foivos <duke at openjdk.java.net> wrote:
> https://github.com/openjdk/jdk/commit/7cc137105928ec109a29d9315565f7f49af3cf2b introduced hidden classes with internal names like `com/example/Foo.1234` that get changed to `com.example.Foo/1234` by `Class.getName()` which are not properly handled by `MetaUtil`'s `toInternalName` and `internalNameToJava`
>
> This PR fixes this along with the corresponding test that used to work on the assumption that the internal class names didn't contain the `.` character and that java class names didn't contain the `/` character except for lambdas (which are now treated as hidden classes as well), an assumption that no longer holds.
Done, thanks for the ping!
-------------
PR: https://git.openjdk.java.net/jdk/pull/7346
More information about the hotspot-compiler-dev
mailing list