Details
-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b24
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8056866 | emb-9 | Unassigned | P4 | Resolved | Fixed | b24 |
Description
During work on JDK-8044080 for creation of golden files for negative tests, it was discovered that javac truncates the invalid character code, example: \ud834\udd7b and displays half of it in the error messages
Actual output only contains \udd7b in the error message instead of the complete error code: \ud834\udd7b
Actual error message:
SupplementaryJavaID4.java:14:14: compiler.err.illegal.char: \udd7b
1 error
Issue can be reproduced by the below two tests:
tools/javac/unicode/SupplementaryJavaID4.java
tools/javac/unicode/SupplementaryJavaID5.java
Actual output only contains \udd7b in the error message instead of the complete error code: \ud834\udd7b
Actual error message:
SupplementaryJavaID4.java:14:14: compiler.err.illegal.char: \udd7b
1 error
Issue can be reproduced by the below two tests:
tools/javac/unicode/SupplementaryJavaID4.java
tools/javac/unicode/SupplementaryJavaID5.java
Attachments
Issue Links
- backported by
-
JDK-8056866 javac should report complete character code in the error messages
-
- Resolved
-
- relates to
-
JDK-8043283 Create .out files for negative tests in langtools regression ws
-
- Resolved
-