8222448: java/lang/reflect/PublicMethods/PublicMethodsTest.java times out
Summary: Set empty class path for compilation to avoid unnecessary opening/scanning of JAR files
Reviewed-by: alanb, dholmes
--- a/test/jdk/java/lang/reflect/PublicMethods/PublicMethodsTest.java Tue Jun 04 12:44:53 2019 -0700
+++ b/test/jdk/java/lang/reflect/PublicMethods/PublicMethodsTest.java Tue Jun 04 12:50:15 2019 -0700
@@ -222,6 +222,11 @@
StandardJavaFileManager standardJavaFileManager =
javac.getStandardFileManager(errorsCollector, Locale.ROOT,
Charset.forName("UTF-8"));
+ try {
+ standardJavaFileManager.setLocation(StandardLocation.CLASS_PATH, List.of());
+ } catch (IOException e) {
+ throw new UncheckedIOException(e);
+ }
TestFileManager testFileManager = new TestFileManager(
standardJavaFileManager, source);