jdk1.3's javac (java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-U)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, interpreted mode))
fails to check the validity of the import declaration in the following test case:
-----------------------------------------------------
/*
* @test @(#)NoClass.java 1.1 98/01/13
* @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 -nowrite NoClass.java
*/
import nonexistent.pack.cls;
-----------------------------------------------------
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-U)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, interpreted mode))
fails to check the validity of the import declaration in the following test case:
-----------------------------------------------------
/*
* @test @(#)NoClass.java 1.1 98/01/13
* @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 -nowrite NoClass.java
*/
import nonexistent.pack.cls;
-----------------------------------------------------
- relates to
-
JDK-8057753 Test langtools/test/tools/javac/NoClass.java is failing when run together with langtools/test/tools/javac/DuplicateImport.java
- Closed