File tree 4 files changed +14
-1
lines changed
main/java/com/fasterxml/jackson/databind/type
test/java/com/fasterxml/jackson/databind/type
4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -653,6 +653,10 @@ Guixiong Wu (吴桂雄)
653
653
* Reported #2032 : Blacklist another serialization gadget (ibatis)
654
654
(2.8.11.2 )
655
655
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
+
656
660
Connor Kuhn (ckuhn@github)
657
661
* Contributed #1341 : FAIL_ON_MISSING_EXTERNAL_TYPE_ID_PROPERTY
658
662
(2.9.0 )
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ Project: jackson-databind
10
10
of type `UnwrappingBeanSerializer`
11
11
(reported by Petar T)
12
12
#2082 : `FactoryBasedEnumDeserializer` should be cachable
13
+ #2109 : Canonical string for reference type is built incorrectly
14
+ (reported by svarzee@github)
13
15
14
16
2.9.6 (12 -Jun-2018 )
15
17
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