8057753: Test langtools/test/tools/javac/NoClass.java is failing when run together with langtools/test/tools/javac/DuplicateImport.java
authorjlahoda
Mon, 08 Sep 2014 15:51:29 +0200
changeset 26534 43bd005b6972
parent 26533 8fba085fbdbf
child 26535 24dfa5fd8fe2
8057753: Test langtools/test/tools/javac/NoClass.java is failing when run together with langtools/test/tools/javac/DuplicateImport.java Summary: Removing javac/NoClass test, as it is superseded by javac/importChecks/InvalidImportsNoClasses.java Reviewed-by: jfranck
langtools/test/tools/javac/NoClass.java
langtools/test/tools/javac/NoClass.out
langtools/test/tools/javac/importChecks/InvalidImportsNoClasses.java
--- a/langtools/test/tools/javac/NoClass.java	Mon Sep 08 14:16:33 2014 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-/*
- * @test /nodynamiccopyright/
- * @bug 4041851
- * @summary The gramamr allows java files without class or interface
- *          declarations; when the compiler encountered this, it failed
- *          to check the validity of import declarations.
- * @author turnidge
- *
- * @compile/fail/ref=NoClass.out -XDrawDiagnostics  NoClass.java
- */
-
-import nonexistent.pack.cls;
--- a/langtools/test/tools/javac/NoClass.out	Mon Sep 08 14:16:33 2014 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-NoClass.java:12:24: compiler.err.doesnt.exist: nonexistent.pack
-1 error
--- a/langtools/test/tools/javac/importChecks/InvalidImportsNoClasses.java	Mon Sep 08 14:16:33 2014 +0100
+++ b/langtools/test/tools/javac/importChecks/InvalidImportsNoClasses.java	Mon Sep 08 15:51:29 2014 +0200
@@ -1,6 +1,6 @@
 /*
  * @test /nodynamiccopyright/
- * @bug 4312063
+ * @bug 4041851 4312063
  * @summary Verify that nonexistent imports detected when no classes declared in compilation unit.
  * @author maddox
  *