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

Typo in RangeToken.intersectRanges()

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.9.0
    • 2.9.1
    • Other
    • None

    Description

      Reported by Dave Brosius to j-dev@xerces.apache.org:

      > In org.apache.xerces.impl.xpath.regex.RangeToken.java
      >
      > in method protected void intersectRanges(Token token)
      >
      >
      > around line 352
      >
      > if (src2begin <= src2begin && src1end <= src2end) {
      > // src1: o--------o
      > // src2: o------------o
      > // res: o--------o
      > // Reuse src2
      >
      >
      > from the pretty picture, i'd say it should be
      >
      > if (src2begin <= src1begin && src1end <= src2end) {

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mrglavas@ca.ibm.com Michael Glavassevich
            mrglavas@ca.ibm.com Michael Glavassevich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment