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

UTF16 string gets constructed incorrectly from codepoints if CompactStrings is not enabled

    XMLWordPrintable

Details

    • b03

    Backports

      Description

        After the changes for JDK-8311906, an attempt to compile the following pattern: "ab(\\P{all})+" fails with: java.util.regex.PatternSyntaxException: Unknown character property name {} near index 9 if compact strings is not enabled.
        As a result, javac won't work on a platform where compact strings are not enabled by default.
        However, the problem itself is platform-independent, and can be reproduced on all platforms with -XX:-CompactStrings

        Attachments

          Issue Links

            Activity

              People

                avoitylov Aleksei Voitylov
                avoitylov Aleksei Voitylov
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: