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

serviceability/dcmd/compiler/CodelistTest.java fails with ClassNotFoundException trying to load VM anonymous class

XMLWordPrintable

    • b112

      test CodelistTest.jmx(): failure
      java.lang.AssertionError: Test error: Caught unexpected exception
      ...
      Caused by: java.lang.ClassNotFoundException: java.util.stream.Collectors$$Lambda$3/1057551042
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:286)
      at MethodIdentifierParser.getMethod(MethodIdentifierParser.java:56)
      at CodelistTest.run(CodelistTest.java:93)
      ... 30 more

      Looks like a test bug - VM anonymous classes don't have symboling names, so it's impossible to look them up using Class.forName().

            neliasso Nils Eliasson (Inactive)
            vlivanov Vladimir Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: