Skip to content

Commit fd522c5

Browse files
committed
Merge branch '2.8' into 2.9
2 parents 2a5d022 + bc91126 commit fd522c5

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

release-notes/CREDITS-2.x

+4
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,10 @@ Guixiong Wu (吴桂雄)
653653
* Reported #2032: Blacklist another serialization gadget (ibatis)
654654
(2.8.11.2)
655655

656+
svarzee@github
657+
* Reported #2109, suggested fix: Canonical string for reference type is built incorrectly
658+
(2.8.11.3 / 2.9.7)
659+
656660
Connor Kuhn (ckuhn@github)
657661
* Contributed #1341: FAIL_ON_MISSING_EXTERNAL_TYPE_ID_PROPERTY
658662
(2.9.0)

release-notes/VERSION-2.x

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Project: jackson-databind
1010
of type `UnwrappingBeanSerializer`
1111
(reported by Petar T)
1212
#2082: `FactoryBasedEnumDeserializer` should be cachable
13+
#2109: Canonical string for reference type is built incorrectly
14+
(reported by svarzee@github)
1315

1416
2.9.6 (12-Jun-2018)
1517

src/main/java/com/fasterxml/jackson/databind/type/ReferenceType.java

+1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ protected String buildCanonicalName()
166166
sb.append(_class.getName());
167167
sb.append('<');
168168
sb.append(_referencedType.toCanonical());
169+
sb.append('>');
169170
return sb.toString();
170171
}
171172

src/test/java/com/fasterxml/jackson/databind/type/TestTypeFactory.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,14 @@ public void testCanonicalNames()
232232
can);
233233
assertEquals(t, tf.constructFromCanonical(can));
234234

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

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

0 commit comments

Comments
 (0)