-
Notifications
You must be signed in to change notification settings - Fork 42
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("10") returns true instead of false or an Exception #240
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented As a workaround, one can of course supply own version of DTC. |
@glassfishrobot Commented |
|
…ue boolean impl now has same results as api but returning null instead of exception according to jakartaee/jaxb-api#240
…ue boolean impl now has same results as api but returning null instead of exception according to jakartaee/jaxb-api#240
impl now has same results as api but returning null instead of exception according to jakartaee/jaxb-api#240
…ue boolean impl now has same results as api but returning null instead of exception according to jakartaee/jaxb-api#240 (cherry picked from commit 36eb718)
impl now has same results as api but returning null instead of exception according to jakartaee/jaxb-api#240 (cherry picked from commit 36eb718)
javax.xml.bind.DatatypeConverter.parseBoolean("10") returns true instead of false or an Exception.
The method will return true for any String that starts with "1" like "11" or "1A".
I would expect the result to be false or throw an IllegalArgumentException as the Javadoc seems to indicate.
Environment
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
Windows 7 64-bit
Affected Versions
[2.2.5]
The text was updated successfully, but these errors were encountered: