Please, review the following fix Issue : https://bugs.openjdk.java.net/browse/JDK-8062896 Webrev: http://cr.openjdk.java.net/~jbachorik/8062896/webrev.00/
Unfortunately, JTREG does not allow for automatic building library dependencies from the library classes themselves and therefore the @build section for the transitive closure of the library classes must be specified in all the tests using those library classes.
Thanks, -JB-