OpenJDK / bsd-port / jdk9 / langtools
changeset 2630:63711c189d79
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
author | jlahoda |
---|---|
date | Mon, 08 Sep 2014 15:51:29 +0200 |
parents | b27a7aae4b23 |
children | 10287adbf9d6 |
files | test/tools/javac/NoClass.java test/tools/javac/NoClass.out test/tools/javac/importChecks/InvalidImportsNoClasses.java |
diffstat | 3 files changed, 1 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/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/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/test/tools/javac/importChecks/InvalidImportsNoClasses.java Mon Sep 08 14:16:33 2014 +0100 +++ b/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 *