Details
-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b16
Description
During work on JDK-8055075 for creation of golden files for negative tests, it was suggested to have a better error message recovery for test case:
int[] foo = new int[=] { 1, 2, 3 };
Current error raw diagnostics:
ExtraneousEquals.java:10:23: compiler.err.illegal.start.of.expr
ExtraneousEquals.java:10:24: compiler.err.illegal.start.of.expr
ExtraneousEquals.java:10:25: compiler.err.expected: ';'
ExtraneousEquals.java:10:28: compiler.err.not.stmt
ExtraneousEquals.java:10:29: compiler.err.expected: ';'
5 errors
Test: langtools/test/tools/javac/ExtraneousEquals.java
Golden file for this test will need updates once this issue is fixed.
int[] foo = new int[=] { 1, 2, 3 };
Current error raw diagnostics:
ExtraneousEquals.java:10:23: compiler.err.illegal.start.of.expr
ExtraneousEquals.java:10:24: compiler.err.illegal.start.of.expr
ExtraneousEquals.java:10:25: compiler.err.expected: ';'
ExtraneousEquals.java:10:28: compiler.err.not.stmt
ExtraneousEquals.java:10:29: compiler.err.expected: ';'
5 errors
Test: langtools/test/tools/javac/ExtraneousEquals.java
Golden file for this test will need updates once this issue is fixed.
Attachments
Issue Links
- relates to
-
JDK-8043283 Create .out files for negative tests in langtools regression ws
- Resolved