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

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

XMLWordPrintable

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

      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)

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

              Created:
              Updated:
              Resolved: