-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Potential regression when using ConstructorDetector.USE_PROPERTIES_BASED
#4785
Comments
The test seems invalid: the way it is defined seems that 2.18.0 actually does the right thing, no? (and 2.17 having incorrect handling but one that happened to do what you actually wanted) Because:
hence it is attempting to use Properties style, expecting JSON Object as input -- but input is a JSON String (i.e. what you really want is Exception message looks sub-optimal, sure, but behavior seems correct. What you want to use is either change default or modify
|
Thanks for the quick response. Sounds reasonable to me, I'll try updating the original failure and see if |
@SamBarker ah yes, could be something that is an actual problem even if reproduction not. |
…was working by luck not judgement. For details see FasterXML/jackson-databind#4785 Signed-off-by: Sam Barker <[email protected]> rh-pre-commit.version: 2.0.1 rh-pre-commit.check-secrets: ENABLED
Looks like that fixes the original issue as well. Apparently we have another test that fails because Sorry for the noise. |
@SamBarker no problem at all: when behavior changes it is reasonable to consider breakage. Glad it turned out to be something else (similar things have happened in other cases too, but there are actual bugs too) |
…was working by luck not judgement. For details see FasterXML/jackson-databind#4785 Signed-off-by: Sam Barker <[email protected]> rh-pre-commit.version: 2.0.1 rh-pre-commit.check-secrets: ENABLED
…was working by luck not judgement. For details see FasterXML/jackson-databind#4785 Signed-off-by: Sam Barker <[email protected]> rh-pre-commit.version: 2.0.1 rh-pre-commit.check-secrets: ENABLED
…was working by luck not judgement. For details see FasterXML/jackson-databind#4785 Signed-off-by: Sam Barker <[email protected]> rh-pre-commit.version: 2.0.1 rh-pre-commit.check-secrets: ENABLED
Search before asking
Describe the bug
We in the Kroxylicious project have observed a potential regression in the 2.18 release. I think I have managed to reproduce it 😬 The following test passes on with 2.17 but fails on the 2.18/2.19 branch.
On 2.18 it fails with:
This issue replaces FasterXML/jackson-modules-java8#323 as I wrongly thought
ParameterNamesModule
was involved.Version Information
Working 2.17.3
Failing on 2.18.1
Reproduction
or #4786
Expected behavior
The static method annotated
@JsonCreator
is used to parse the string.Additional context
No response
The text was updated successfully, but these errors were encountered: