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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 11.0.18
    • 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)

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

              Created:
              Updated: