You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding @JsonUnwrapped to any field in a class prevents an UnrecognizedPropertyException from being thrown, ever, regardless of DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES or @JsonIgnoreProperties. (As of databind version 2.5.4.)
If you look at UnwrappedPropertyHandler.processUnwrapped(JsonParser, DeserializationContext, Object, TokenBuffer), you'll see that it iterates over the unwrapped properties and sets each one based on properties found in the TokenBuffer. Nowhere does it check that every property stashed in the TokenBuffer was found in (at least) one of the unwrapped properties.