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

UnicodeReader not translating \u005c\\u005d to \\]

    XMLWordPrintable

Details

    • b33
    • Verified

    Backports

      Description

        In the example

        public class T {
          public static void main(String[] args) {
            System.out.println("\u005C\\u005D");
          }
        }

        The leading \u005C, equivalent to a backslash, should escape the following backslash and the output should be "\]". This was broken by JDK-8254073 (and subsequent patches) in JDK 16. JDK 16 generates an 'invalid escape' error.




        Attachments

          Issue Links

            Activity

              People

                jlaskey Jim Laskey
                jlaskey Jim Laskey
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: