You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2007/02/05 16:20:05 UTC

[jira] Commented: (XERCESJ-1224) Typo in RangeToken.intersectRanges()

    [ https://issues.apache.org/jira/browse/XERCESJ-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470246 ] 

Michael Glavassevich commented on XERCESJ-1224:
-----------------------------------------------

Note that the type of regular expression this affects (e.g. "(?[a-r]&[e-z]&[c-ko-s])") is only allowed in non-XML schema mode.

> Typo in RangeToken.intersectRanges()
> ------------------------------------
>
>                 Key: XERCESJ-1224
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1224
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.9.0
>            Reporter: Michael Glavassevich
>            Priority: Minor
>
> 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) {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org