Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8048803

javac should report complete character code in the error messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • 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

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

                Created:
                Updated:
                Resolved: