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

Fix : Cannot read Optionals written with StdTypeResolverBuilder, from [jackson-modules-java8#86] #4838

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Project: jackson-databind

#4827: Subclassed Throwable deserialization fails since v2.18.0 - no creator
index for property 'cause'
(reported by @nilswieber)
(fix by Joo-Hyuk K)
#4844: Fix wrapped array hanlding wrt `null` by `StdDeserializer`
(fix by Stanislav S)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.fasterxml.jackson.databind.jsontype.BasicPolymorphicTypeValidator;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;

import static com.fasterxml.jackson.databind.testutil.DatabindTestUtil.jsonMapperBuilder;

Expand Down Expand Up @@ -48,5 +49,6 @@ public void testPolymorphicDeserialization4214() throws Exception
String json = mapper.writeValueAsString(enumSetHolder);
EnumSetHolder result = mapper.readValue(json, EnumSetHolder.class);
assertEquals(result, enumSetHolder);
assertTrue(result.enumSet instanceof EnumSet<?>);
}
}