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

JVMTI RedefineClasses doesn't handle anonymous classes properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:

      Description

      While using the VisualVM profiler with my application I noticed that every time I connected the profiler my lambda classes stopped working producing exceptions like this:

      Caused by: java.lang.NoClassDefFoundError: com/oracle/graal/java/BytecodeParser$$Lambda$177
      at com.oracle.graal.java.BytecodeParser$$Lambda$177/1829744120.get$Lambda(Unknown Source)
      at com.oracle.graal.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:2330)
      ... 18 more
      Caused by: java.lang.ClassNotFoundException: com.oracle.graal.java.BytecodeParser$$Lambda$177
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                never Tom Rodriguez
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: