JDK-8137052 : Tests should not use context class loader
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2015-09-23
  • Updated: 2016-06-02
  • Resolved: 2016-06-02
Related Reports
Blocks :  
Description

final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
resource = contextClassLoader.getResource(path.substring(1));

should be:

resource = TestClassName.class.getResource(path.substring(1));
Comments
We have changed how tests run - on the application classpath in the unnamed module, so this fix is no longer needed
19-10-2015