javac should report complete character code in the error messages

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: tools
    • b24
    • Verified

        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

              Assignee:
              Jan Lahoda
              Reporter:
              Sonali Goel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: