File tree 4 files changed +17
-1
lines changed
main/java/com/fasterxml/jackson/databind/type
test/java/com/fasterxml/jackson/databind/type
4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -638,6 +638,10 @@ Guixiong Wu (吴桂雄)
638
638
* Reported #2032: Blacklist another serialization gadget (ibatis)
639
639
(2.8.11.2)
640
640
641
+ svarzee@github
642
+ * Reported #2109, suggested fix: Canonical string for reference type is built incorrectly
643
+ (2.8.11.3 / 2.9.7)
644
+
641
645
Connor Kuhn (ckuhn@github)
642
646
* Contributed #1341: FAIL_ON_MISSING_EXTERNAL_TYPE_ID_PROPERTY
643
647
(2.9.0)
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ Project: jackson-databind
3
3
=== Releases ===
4
4
------------------------------------------------------------------------
5
5
6
+ 2.8.11.3 (not yet released)
7
+
8
+ #2109: Canonical string for reference type is built incorrectly
9
+ (reported by svarzee@github)
10
+
6
11
2.8.11.2 (08-Jun-2018)
7
12
8
13
#1941: `TypeFactory.constructFromCanonical()` throws NPE for Unparameterized
Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ protected String buildCanonicalName()
166
166
sb .append (_class .getName ());
167
167
sb .append ('<' );
168
168
sb .append (_referencedType .toCanonical ());
169
+ sb .append ('>' );
169
170
return sb .toString ();
170
171
}
171
172
Original file line number Diff line number Diff line change @@ -232,8 +232,14 @@ public void testCanonicalNames()
232
232
can );
233
233
assertEquals (t , tf .constructFromCanonical (can ));
234
234
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 ));
236
241
242
+ // [databind#1941]: allow "raw" types too
237
243
t = tf .constructFromCanonical ("java.util.List" );
238
244
assertEquals (List .class , t .getRawClass ());
239
245
assertEquals (CollectionType .class , t .getClass ());
You can’t perform that action at this time.
0 commit comments