JDK-8299374 : [TESTBUG] Test test/hotspot/jtreg/sanity/MismatchedWhiteBox/WhiteBox.java fails after fix to JDK-8199290
  • Type: Bug
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 11.0.18
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2022-12-27
  • Updated: 2023-01-09
Related Reports
Relates :  
Description
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)