From 998ca54978c3bcedc90398c2303acffa2f6ff63c Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Mon, 12 Jun 2023 17:14:33 -0700 Subject: [PATCH] Update release notes wrt #3838 --- release-notes/VERSION-2.x | 3 +++ .../ObjectId3838Test.java} | 22 ++++++++----------- 2 files changed, 12 insertions(+), 13 deletions(-) rename src/test/java/com/fasterxml/jackson/databind/{deser/JsonIdentityInfoIdProperty3838Test.java => objectid/ObjectId3838Test.java} (91%) diff --git a/release-notes/VERSION-2.x b/release-notes/VERSION-2.x index c3f4b3b6f9..1989c5100d 100644 --- a/release-notes/VERSION-2.x +++ b/release-notes/VERSION-2.x @@ -6,6 +6,9 @@ Project: jackson-databind 2.16.0 (not yet released) +#3838: Difference in the handling of `ObjectId-property` in `JsonIdentityInfo` + depending on the deserialization route + (fix contributed by Joo-Hyuk K) #3877: Add new `OptBoolean` valued property in `@JsonTypeInfo`, handling, to allow per-polymorphic type loose Type Id handling (contributed by Joo-Hyuk K) diff --git a/src/test/java/com/fasterxml/jackson/databind/deser/JsonIdentityInfoIdProperty3838Test.java b/src/test/java/com/fasterxml/jackson/databind/objectid/ObjectId3838Test.java similarity index 91% rename from src/test/java/com/fasterxml/jackson/databind/deser/JsonIdentityInfoIdProperty3838Test.java rename to src/test/java/com/fasterxml/jackson/databind/objectid/ObjectId3838Test.java index e4cdd94c8e..f2ae632df9 100644 --- a/src/test/java/com/fasterxml/jackson/databind/deser/JsonIdentityInfoIdProperty3838Test.java +++ b/src/test/java/com/fasterxml/jackson/databind/objectid/ObjectId3838Test.java @@ -1,19 +1,14 @@ -package com.fasterxml.jackson.databind.deser; +package com.fasterxml.jackson.databind.objectid; import com.fasterxml.jackson.annotation.*; + import com.fasterxml.jackson.databind.BaseMapTest; -import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.exc.MismatchedInputException; // [databind#3838]: Difference in the handling of ObjectId-property in JsonIdentityInfo depending on the deserialization route. -public class JsonIdentityInfoIdProperty3838Test extends BaseMapTest { - - /* - /********************************************************** - /* Set Up - /********************************************************** - */ +public class ObjectId3838Test extends BaseMapTest +{ interface ResultGetter { String result(); } @@ -157,9 +152,9 @@ public String result() { } /* - /********************************************************** - /* Test - /********************************************************** + /********************************************************************** + /* Test methods + /********************************************************************** */ private final ObjectMapper MAPPER = newJsonMapper(); @@ -174,7 +169,8 @@ public String result() { {IntSequencedBean.class, "{'id':-1,'value':'great'}"} }; - public void testUniformHandlingForMissingObjectId() throws Exception { + public void testUniformHandlingForMissingObjectId() throws Exception + { for (Object[] classAndJsonStrEntry : CLASS_AND_JSON_STRING) { final Class cls = (Class) classAndJsonStrEntry[0]; final String jsonStr = (String) classAndJsonStrEntry[1];