[
https://issues.apache.org/jira/browse/XERCESJ-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Glavassevich updated XERCESJ-1265:
------------------------------------------
Description:
Current behaviour:
[b-a], Expected: Invalid, Actual: Invalid, Reason: backwards
[--+], Expected: Invalid, Actual: Invalid, Reason: '-' can't be used in a s-e
range
[+--], Expected: Invalid, Actual: Invalid, Reason: '-' can't be used in a s-e
range
[-+], Expected: Valid, Actual: Valid, Reason: '-' is at the beginning of a
positive character range (PCR)
[+-], Expected: Valid, Actual: Valid, Reason: '-' is at the end of a (PCR)
[^-+], Expected: Valid, Actual: Valid, Reason: '-' is at the beginning of a
(PCR)
[^+-], Expected: Valid, Actual: Valid, Reason: '-' is at the end of a (PCR)
[-], Expected: Valid, Actual: Invalid, Reason: '-' is at the beginning/end of a
(PCR)
[^-], Expected: Valid, Actual: Invalid, Reason: '-' is at the beginning/end of
a (PCR)
[--], Expected: Valid, Actual: Invalid, Reason: '-' is at the beginning and end
of a (PCR)
[^--], Expected: Valid, Actual: Invalid, Reason: '-' is at the beginning and
end of a (PCR)
[---], Expected: Invalid, Actual: Invalid, Reason: '-' can't be used in a s-e
range
The current version of Xerces in SVN gives the wrong answer for 4 cases.
This was originally reported as a bug against Eclipse XSD. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197103 for more details.
was:
Current behaviour:
Regex Expected Actual Reason
[b-a] I I backwards
[--+] I I '-' can't be used
in a s-e range
[+--] I I '-' can't be used
in a s-e range
[-+] V V '-' is at the
beginning of a positive character range (PCR)
[+-] V V '-' is at the end
of a (PCR)
[^-+] V V '-' is at the
beginning of a (PCR)
[^+-] V V '-' is at the end of
a (PCR)
[-] V I '-' is at the
beginning/end of a (PCR)
[^-] V I '-' is at the
beginning/end of a (PCR)
[--] V I '-' is at the
beginning and end of a (PCR)
[^--] V I '-' is at the
beginning and end of a (PCR)
[---] I I '-' can't be
used in a s-e range
V = valid
I = invalid
The current version of Xerces in SVN gives the wrong answer for 4 cases.
This was originally reported as a bug against Eclipse XSD. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197103 for more details.
> E2-67 not fully implemented; rejecting regular expressions like [-], [^-]
> -------------------------------------------------------------------------
>
> Key: XERCESJ-1265
> URL: https://issues.apache.org/jira/browse/XERCESJ-1265
> Project: Xerces2-J
> Issue Type: Bug
> Components: XML Schema Structures
> Affects Versions: 2.9.0
> Reporter: Michael Glavassevich
> Priority: Minor
>
> Current behaviour:
> [b-a], Expected: Invalid, Actual: Invalid, Reason: backwards
> [--+], Expected: Invalid, Actual: Invalid, Reason: '-' can't be used in a s-e
> range
> [+--], Expected: Invalid, Actual: Invalid, Reason: '-' can't be used in a s-e
> range
> [-+], Expected: Valid, Actual: Valid, Reason: '-' is at the beginning of a
> positive character range (PCR)
> [+-], Expected: Valid, Actual: Valid, Reason: '-' is at the end of a (PCR)
> [^-+], Expected: Valid, Actual: Valid, Reason: '-' is at the beginning of a
> (PCR)
> [^+-], Expected: Valid, Actual: Valid, Reason: '-' is at the end of a (PCR)
> [-], Expected: Valid, Actual: Invalid, Reason: '-' is at the beginning/end of
> a (PCR)
> [^-], Expected: Valid, Actual: Invalid, Reason: '-' is at the beginning/end
> of a (PCR)
> [--], Expected: Valid, Actual: Invalid, Reason: '-' is at the beginning and
> end of a (PCR)
> [^--], Expected: Valid, Actual: Invalid, Reason: '-' is at the beginning and
> end of a (PCR)
> [---], Expected: Invalid, Actual: Invalid, Reason: '-' can't be used in a s-e
> range
> The current version of Xerces in SVN gives the wrong answer for 4 cases.
> This was originally reported as a bug against Eclipse XSD. See
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=197103 for more details.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]