New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
javax.xml.bind.DatatypeConverter.parseBoolean incorrect #608
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented java.lang.StringIndexOutOfBoundsException: String index out of range: 0 |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
(jaxb-ri-20090206)
javadoc for said method claims to accept "A string containing lexical
representation of xsd:boolean" and to throw "IllegalArgumentException - if
string parameter does not conform to lexical value space defined in XML Schema
Part 2: Datatypes for xsd:boolean."
IllegalArgumentException is never thrown.
method accepts /\s*[1t]./ as true and /\s[0f].*/ as false, whereas XML Schema
Part 2, 3.2.2 boolean rules that the lexical representations are
{true, false, 1, 0}
Also, parseBoolean( "" ) runs into a StringIndexOutOfBoundsException.
Environment
Operating System: All
Platform: All
The text was updated successfully, but these errors were encountered: