changeset 4288:35f9b3d5e231

8186636: JShell tests: jtreg_4.2-b08 breaks ComputeFQNsTest.testAddImport() Reviewed-by: jlahoda
author rfield
date Tue, 22 Aug 2017 23:26:28 -0700
parents 0a169aac4d5c
children 5e5a17a1d918
files test/jdk/jshell/ComputeFQNsTest.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/jshell/ComputeFQNsTest.java	Tue Aug 22 13:10:46 2017 +0200
+++ b/test/jdk/jshell/ComputeFQNsTest.java	Tue Aug 22 23:26:28 2017 -0700
@@ -51,14 +51,14 @@
     private final Path outDir = Paths.get("ComputeFQNsTest");
 
     public void testAddImport() throws Exception {
-        compiler.compile(outDir, "package test1; public class TestClass { }", "package test2; public class TestClass { }");
+        compiler.compile(outDir, "package test1; public class FQNTestClass { }", "package test2; public class FQNTestClass { }");
         String jarName = "test.jar";
-        compiler.jar(outDir, jarName, "test1/TestClass.class", "test2/TestClass.class");
+        compiler.jar(outDir, jarName, "test1/FQNTestClass.class", "test2/FQNTestClass.class");
         addToClasspath(compiler.getPath(outDir).resolve(jarName));
 
         assertInferredFQNs("LinkedList", "java.util.LinkedList");
         assertInferredFQNs("ArrayList", "java.util.ArrayList");
-        assertInferredFQNs("TestClass", "test1.TestClass", "test2.TestClass");
+        assertInferredFQNs("FQNTestClass", "test1.FQNTestClass", "test2.FQNTestClass");
         assertInferredFQNs("CharSequence", "CharSequence".length(), true, "java.lang.CharSequence");
         assertInferredFQNs("unresolvable");
         assertInferredFQNs("void test(ArrayList", "ArrayList".length(), false, "java.util.ArrayList");