8222448: java/lang/reflect/PublicMethods/PublicMethodsTest.java times out
authormchung
Tue, 04 Jun 2019 12:50:15 -0700
changeset 55207 1791eaa73e81
parent 55206 2fe2063fe567
child 55208 4158e6a864d4
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
test/jdk/java/lang/reflect/PublicMethods/PublicMethodsTest.java
--- 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);