JVMTI RedefineClasses doesn't handle anonymous classes properly

XMLWordPrintable

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

      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)

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

              Created:
              Updated:
              Resolved: