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

Xerces Update: Bugs found in impl/xpath/regex/RangeToken.java intersectRanges method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 9
    • xml
    • None

    Description

      Regular expression intersection returns incorrect value when first range is longer than second range. Example below.

      new RegularExpression("(?[b-d]&[a-r])"); -> returns [b-d] (Correct)
      new RegularExpression("(?[a-r]&[b-d])"); -> returns [b-de-r] (Incorrect)

      Attachments

        Issue Links

          Activity

            People

              dli David Li (Inactive)
              dli David Li (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: