Skip to content

Commit

Permalink
Merge branch '2.8' into 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Aug 15, 2018
2 parents 2a5d022 + bc91126 commit fd522c5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions release-notes/CREDITS-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,10 @@ Guixiong Wu (吴桂雄)
* Reported #2032: Blacklist another serialization gadget (ibatis)
(2.8.11.2)

svarzee@github
* Reported #2109, suggested fix: Canonical string for reference type is built incorrectly
(2.8.11.3 / 2.9.7)

Connor Kuhn (ckuhn@github)
* Contributed #1341: FAIL_ON_MISSING_EXTERNAL_TYPE_ID_PROPERTY
(2.9.0)
Expand Down
2 changes: 2 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Project: jackson-databind
of type `UnwrappingBeanSerializer`
(reported by Petar T)
#2082: `FactoryBasedEnumDeserializer` should be cachable
#2109: Canonical string for reference type is built incorrectly
(reported by svarzee@github)

2.9.6 (12-Jun-2018)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ protected String buildCanonicalName()
sb.append(_class.getName());
sb.append('<');
sb.append(_referencedType.toCanonical());
sb.append('>');
return sb.toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,14 @@ public void testCanonicalNames()
can);
assertEquals(t, tf.constructFromCanonical(can));

// [databind#1941]: allow "raw" types too
// [databind#2109]: also ReferenceTypes
t = tf.constructType(new TypeReference<AtomicReference<Long>>() { });
can = t.toCanonical();
assertEquals("java.util.concurrent.atomic.AtomicReference<java.lang.Long>",
can);
assertEquals(t, tf.constructFromCanonical(can));

// [databind#1941]: allow "raw" types too
t = tf.constructFromCanonical("java.util.List");
assertEquals(List.class, t.getRawClass());
assertEquals(CollectionType.class, t.getClass());
Expand Down

0 comments on commit fd522c5

Please sign in to comment.