-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b31
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085396 | emb-9 | Jan Lahoda | P2 | Resolved | Fixed | team |
When the golden/expected output was added to the javac/NoClass.java test as part of JDK-8055079, the test started to fail when run together with javac/DuplicateImport.java. The reason is the NoClass test expects that package "nonexistent.pack" does not exist, while the package is defined by the DuplicateImport test. And so while the compilation of NoClass fails correctly (which is why the test was passing so far), it fails with an incorrect error, causing the test failure. Note that this reveals an inherent bug in NoClass test - the test was behaving differently when run in batch with other tests and when run separately.
There is test langtools/test/tools/javac/importChecks/InvalidImportsNoClasses.java, which is equivalent to the intended functionality of NoClass, so it may be enough to remove the NoClass test, and keep the InvalidImportsNoClasses test.
There is test langtools/test/tools/javac/importChecks/InvalidImportsNoClasses.java, which is equivalent to the intended functionality of NoClass, so it may be enough to remove the NoClass test, and keep the InvalidImportsNoClasses test.
- backported by
-
JDK-8085396 Test langtools/test/tools/javac/NoClass.java is failing when run together with langtools/test/tools/javac/DuplicateImport.java
-
- Resolved
-
- relates to
-
JDK-8055079 Group 9c: golden files for tests in tools/javac dir
-
- Closed
-
-
JDK-4312063 javac fails to check the validity of import declaration
-
- Closed
-