-
Notifications
You must be signed in to change notification settings - Fork 114
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
[#1695] Fix parsing of 'tru...' values inconsistent to true boolean #1741
Conversation
Hi, @laurentschoelens: I have some questions about this PR because it could be some mistakes based on another tests at the same project:
Regards, |
Is there any reason to stay to JUnit 3 testing style ? Since JUnit 5 is out for a moment, I would say that the best option would be to start migration to JUnit 5.
You're right. Since this class is deprecated and behaviour inconsistent, I didnt want to change too much.
Regards, |
@laurentschoelens |
Ok but I didnt add junit4 dependency, it was already in the classpath, no ? |
as long as the test runs as part of the build, it does not matter whether it is 3 or 4; 4 is on the classpath already |
Let me fix my PR first before merging this one @lukasj |
78ea12b
to
0af9676
Compare
@antoniosanct new commit to be more accurate based on API impl (without throwing any excepion) |
…ue boolean impl now has same results as api but returning null instead of exception according to jakartaee/jaxb-api#240
0af9676
to
70e116f
Compare
Hi, @laurentschoelens |
@antoniosanct missing comment no ? 😄 |
@laurentschoelens |
In my opinion and in author original spirit, when it parses 0 or false, it should return false, when something else, since not a boolean in xsd representation, that will be null or Exception (in api). |
@laurentschoelens |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #1695
Adding test case to validate
_parseBoolean
function