JDK-8037324 : Xerces Update: Bugs found in impl/xpath/regex/RangeToken.java intersectRanges method
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2014-03-13
  • Updated: 2014-03-17
  • Resolved: 2014-03-17
Related Reports
Duplicate :  
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)
Comments
Moving this fix to bug: https://bugs.openjdk.java.net/browse/JDK-8035577
17-03-2014