Release Note: javac Mishandles Supplementary Character in Character Literal

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Delivered
    • Priority: P4
    • 25
    • Affects Version/s: 25
    • Component/s: tools

      In the Java source code, character literals can only contain a single UTF-16 character. The `javac` compiler was incorrectly accepting character literals consisting of two UTF-16 surrogate characters, only using the first surrogate, and ignoring the second surrogate. This has now been corrected, and `javac` will produce a compile-time error when it detects a character literal which consists of two UTF-16 surrogate characters.

            Assignee:
            Jan Lahoda
            Reporter:
            Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: