[TESTBUG] Test test/hotspot/jtreg/sanity/MismatchedWhiteBox/WhiteBox.java fails after fix to JDK-8199290

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 11.0.18
    • Component/s: hotspot
    • generic
    • generic

      JDK 11 test test/hotspot/jtreg/sanity/MismatchedWhiteBox/WhiteBox.java fails after fix to JDK-8199290.

      The test starts failing because test/lib/ClassFileInstaller.java expects sun.hotspot.WhiteBox$WhiteBoxPermission to be present, but test/hotspot/jtreg/sanity/MismatchedWhiteBox/WhiteBox.java has no inner classes.

      LOG:

      java.lang.RuntimeException: Failed to find sun/hotspot/WhiteBox$WhiteBoxPermission.class
      at ClassFileInstaller.writeClassToDisk(ClassFileInstaller.java:240)
      at ClassFileInstaller.writeClassToDisk(ClassFileInstaller.java:227)
      at ClassFileInstaller.writeClassToDisk(ClassFileInstaller.java:224)
      at ClassFileInstaller.main(ClassFileInstaller.java:97)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:829)

            Assignee:
            Unassigned
            Reporter:
            Konstantin Shefov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: