Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1473

RegexParser backreference problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.10.0
    • 2.11.0
    • None

    Description

      In org.apache.xerces.impl.xpath.regex.RegexParser

      I think the processBackreference() method has a bug.

      I think this line:
      if ('1' <= ch && ch <= '9') {

      Should be:
      if ('0' <= ch && ch <= '9') {

      In order to correctly process backreferences where a subsequent digit is 0.

      Attachments

        Activity

          People

            knoaman@ca.ibm.com Khaled Noaman
            joshspiegel Josh Spiegel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: