Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8281266

[JVMCI] MetaUtil.toInternalName() doesn't handle hidden classes correctly

    XMLWordPrintable

Details

    • b13
    • generic
    • generic

    Backports

      Description

        JDK-8238358 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 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.

        Attachments

          Issue Links

            Activity

              People

                sgehwolf Severin Gehwolf
                sgehwolf Severin Gehwolf
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: