Skip to content
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

[don't merge without broader conversation] Fix scalar coerscion tests by disabling afterburner #974

Closed
wants to merge 2 commits into from

Conversation

carterkozak
Copy link
Contributor

MapperFeature.ALLOW_COERCION_OF_SCALARS will save us
...if we disable afterburner. We can fix the afterburner bug,
however I've been unable to produce a benchmark showing clear
wins using the afterburner module.

...if we disable afterburner. We can fix the afterburner bug,
however I've been unable to produce a benchmark showing clear
wins with the afterburner module.
@carterkozak carterkozak requested a review from a team as a code owner March 10, 2019 00:28
@dansanduleac
Copy link
Contributor

Well, that's one way to do it!
I've already fixed this in afterburner btw (FasterXML/jackson-modules-base#70), but it won't be in until 2.9.9 which seems to be taking a while to release.

@carterkozak
Copy link
Contributor Author

Oh fun, would you mind adding that link to the ignore line?

@carterkozak
Copy link
Contributor Author

Closing given FasterXML/jackson-modules-base#70

receiveBooleanExample:
- '{"value":0}' # jackson is casting 0 -> false and 1 -> true... MapperFeature.ALLOW_COERCION_OF_SCALARS);) in 2.9 will save us
- '{"value":"true"}' # jackson is casting 0 -> false and 1 -> true... MapperFeature.ALLOW_COERCION_OF_SCALARS);) in 2.9 will save us

receiveStringExample:
- '{"value":8}' # jackson coerces things to other types
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's interesting that this is still allowed even with ALLOW_COERCION_OF_SCALARS on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants