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

Regexp regression for escaped dash in character class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • None
    • core-libs
    • None
    • b91
    • Verified

    Description

      A regexp regression was introduced in changeset 125:037e1de7ab1a where an escaped dash in a character class is not escaped in the pattern produced by RegExpScanner removes the backslash.

      Example:

      /[a\-b]/

      is converted to:

      /[a-b]/

      Attachments

        Activity

          People

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: