changeset 56589:1791eaa73e81

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
author mchung
date Tue, 04 Jun 2019 12:50:15 -0700
parents 2fe2063fe567
children 4158e6a864d4
files test/jdk/java/lang/reflect/PublicMethods/PublicMethodsTest.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);