Skip to content

Commit ee6a3ca

Browse files
committed
Merge branch '2.5'
2 parents 2c9fa0e + 3470803 commit ee6a3ca

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

release-notes/CREDITS

+5
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ Dylan Scott (dylanscott@github)
221221
issue)
222222
(2.5.2)
223223

224+
Alexey Gavrilov (Alexey1Gavrilov@github)
225+
* Reported, contributed fix for #761: Builder deserializer: in-compatible type exception
226+
when return type is super type
227+
(2.5.3)
228+
224229
Dmitry Spikhalskiy (Spikhalskiy@github)
225230
* Reported #731, suggested the way to fix it: XmlAdapter result marshaling error in
226231
case of ValueType=Object

release-notes/VERSION

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Project: jackson-databind
3333
(reported by migel@github)
3434
#745: EnumDeserializer.deserializerForCreator fails when used to deserialize a Map key
3535
(contributed by John M)
36+
#761: Builder deserializer: in-compatible type exception when return type is super type
37+
(contributed by Alexey G)
3638

3739
2.5.2 (29-Mar-2015)
3840

src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ public JsonDeserializer<?> buildBuilderBased(JavaType valueType,
379379
&& !rawBuildType.isAssignableFrom(rawValueType)
380380
&& !rawValueType.isAssignableFrom(rawBuildType)) {
381381
throw new IllegalArgumentException("Build method '"+_buildMethod.getFullName()
382-
+" has bad return type ("+rawBuildType.getName()
383-
+"), not compatible with POJO type ("+valueType.getRawClass().getName()+")");
382+
+" has bad return type ("+rawBuildType.getName()
383+
+"), not compatible with POJO type ("+valueType.getRawClass().getName()+")");
384384
}
385385
// And if so, we can try building the deserializer
386386
Collection<SettableBeanProperty> props = _properties.values();

0 commit comments

Comments
 (0)