Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8354908 javac mishandles supplementary character in character literal
  3. JDK-8356830

Release note: javac mishandles supplementary character in character literal

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 25
    • 25
    • 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.

            jlahoda Jan Lahoda
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: