JDK-8163412 : [TESTBUG] test/compiler/codecache/jmx/ManagerNamesTest.java failed with: Failed to find sun/hotspot/WhiteBox.class
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-08-08
  • Updated: 2016-08-17
  • Resolved: 2016-08-17
Related Reports
Duplicate :  
Description
java.lang.RuntimeException: Failed to find sun/hotspot/WhiteBox.class
	at ClassFileInstaller.writeClassToDisk(ClassFileInstaller.java:207)
	at ClassFileInstaller.writeClassToDisk(ClassFileInstaller.java:194)
	at ClassFileInstaller.writeClassToDisk(ClassFileInstaller.java:191)
	at ClassFileInstaller.main(ClassFileInstaller.java:93)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:533)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-internal/Thread.java:843)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Failed to find sun/hotspot/WhiteBox.class
JavaTest Message: shutting down test

Comments
in order to ensure that whitebox class is compiled before running ClassFileInstaller, build directive should be '@build sun.hotspot.WhiteBox', using indirect directives together w/ libraries can cause such strange CNF. the bug should be fixed by JDK-8157957. closing as dup.
17-08-2016

Seems like the same problem as JDK-8163412. Could we check that all the tests comply with the jtreg directives order?
08-08-2016