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)
new RegularExpression("(?[b-d]&[a-r])"); -> returns [b-d] (Correct)
new RegularExpression("(?[a-r]&[b-d])"); -> returns [b-de-r] (Incorrect)
Attachments
Issue Links
- duplicates
-
JDK-8035577 Xerces Update: impl/xpath/regex/RangeToken.java
- Resolved