-
Notifications
You must be signed in to change notification settings - Fork 15
Starting to modernize Gradle #595
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
Conversation
It looks like the failures are due to the mocks returning empty values rather than |
I think so? But I worry swapping something else has changed the real behavior |
Looks like the upgrade from jackson 2.9.0 to 2.13.3 triggered the new failures. We can go up to 2.11.x, but the failure begins in 2.12.x due to this change: https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.12#xml-module. So the question is, do we want to keep the behavior of mapping empty xml elements to null? |
I'm heavily tempted to say we go with the newest behavior, but I also don't feel like that's my call to make? Empty elements are easier to deal with than nulls most of the time? |
Yeah, I'm +1 for empty objects over nulls. @RachelTucker, what do you think? |
@blitt How much should we try to preserve the current behavior of the SDK vs modernizing it? |
Would an empty Boolean be |
In this case, the issue is how If I tell the |
Edit: got that backwords It looks like BP currently returns Example: |
Ok, so by BP convention the empty element in the form of <?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
...
<ele xsi:nil="true"/>
...
</root> We'll make sure to keep the prior behavior and not look to change it in the future. |
This is a draft because I still don't know what all the dependencies need to be modernized, and I need to figure out why upgrading causes 3 tests to fail.