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

[TESTBUG] compiler/classUnloading/anonymousClass/TestAnonymousClassUnloading failed with ClassNotFoundException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b31
    • CPU:
      x86
    • OS:
      windows

      Description

      The TestAnonymousClassUnloading.java test failed with ClassNotFoundException in JPRT testing after repo consolidation.

      Excerpt from JPRT log:

      STDERR:
      java.lang.ClassNotFoundException: compiler/classUnloading/anonymousClass/TestAnonymousClassUnloading
      at java.base/java.lang.Class.forName0(Native Method)
      at java.base/java.lang.Class.forName(Class.java:375)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:113)
      at java.base/java.lang.Thread.run(Thread.java:844)

      JavaTest Message: main() method must be in a public class named
      JavaTest Message: compiler.classUnloading.anonymousClass.TestAnonymousClassUnloading in file compiler.classUnloading.anonymousClass.TestAnonymousClassUnloading.java

      STATUS:Error.Can't load test: java.lang.ClassNotFoundException: compiler/classUnloading/anonymousClass/TestAnonymousClassUnloading

      The failure was observed on windows platforms only.
      It failed consistently on windows-x86. Failure was also seen on windows-x64.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ccheung Calvin Cheung
                Reporter:
                ccheung Calvin Cheung
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: