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

investigate deserialization case that works in Jackson 2.18 but fails in Jackson 3 #682

Open
pjfanning opened this issue Jul 10, 2024 · 0 comments
Labels
3.x Something that likely has to be done in 3.x, not 2.x

Comments

@pjfanning
Copy link
Member

20328f7

[info] - should use secondary constructor annotated with JsonCreator (Case Class) *** FAILED ***
[info]   tools.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized property "dummy" (class tools.jackson.module.scala.deser.CreatorTest$CaseClassAlternativeConstructor), not marked as ignorable (one known property: "script"])
[info]  at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); byte offset: #UNKNOWN] (through reference chain: tools.jackson.module.scala.deser.CreatorTest$CaseClassAlternativeConstructor["dummy"])
[info]   at tools.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:51)
[info]   at tools.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:1208)
[info]   at tools.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1947
[info]   at tools.jackson.databind.deser.bean.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1726)
[info]   at tools.jackson.databind.deser.bean.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1704)
[info]   at tools.jackson.databind.deser.bean.BeanDeserializer._vanillaDeserializeWithUnknown(BeanDeserializer.java:433)
[info]   at tools.jackson.databind.deser.bean.BeanDeserializer.deserialize(BeanDeserializer.java:297)
[info]   at tools.jackson.databind.deser.bean.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:619)
[info]   at tools.jackson.databind.deser.bean.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1419)
[info]   at tools.jackson.databind.deser.bean.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:483)
[info]   ...
@pjfanning pjfanning added the 3.x Something that likely has to be done in 3.x, not 2.x label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Something that likely has to be done in 3.x, not 2.x
Projects
None yet
Development

No branches or pull requests

1 participant