RFR: JDK-8242282: Test sun/tools/jps/TestJps.java fails after JDK-8237572
Alex Menkov
alexey.menkov at oracle.com
Thu Apr 9 20:42:51 UTC 2020
Hi all,
Please review the fix for
https://bugs.openjdk.java.net/browse/JDK-8242282
webrev:
http://cr.openjdk.java.net/~amenkov/jdk15/jpsTest_ClsNotFound/webrev/
The test creates jar with test classes and run it with "java -jar
<jar_file>".
The problem is single "@run Test" tag is executed by JTreg
inconsistently - sometimes library classes are compiled to test
directory, sometimes - to library directory.
The fix explicitly forces required library classes compilation (so
library files are compiled to library dir) and add classpath directories
to jar manifest.
--alex
More information about the serviceability-dev
mailing list