Skip to content

Commit b1a8293

Browse files
committed
Merge branch '2.10' into 2.11
2 parents 60a0c25 + a9017ec commit b1a8293

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

release-notes/CREDITS-2.x

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,10 @@ Fabian Lange (CodingFabian@github)
10071007
* Reported #2556: Contention in `TypeNameIdResolver.idFromClass()`
10081008
(2.10.2)
10091009
1010+
Stefan Wendt (stewe@github)
1011+
* Reported #2560: Check `WRAP_EXCEPTIONS` in `CollectionDeserializer.handleNonArray()`
1012+
(2.10.2)
1013+
10101014
Ville Koskela (vjkoskela@github)
10111015
* Contributed #2487: BeanDeserializerBuilder Protected Factory Method for Extension
10121016
(2.11.0)
@@ -1026,4 +1030,4 @@ Robert Diebels (RobertDiebels@github)
10261030
Joseph Koshakow (jkosh44@github)
10271031
* Contributed fix for #2515: `ObjectMapper.registerSubtypes(NamedType...)` doesn't allow registering
10281032
the same POJO for two different type ids
1029-
(contributed by Joseph K)
1033+
(2.11.0)

release-notes/VERSION-2.x

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Project: jackson-databind
3333
(reported by cpopp@github)
3434
#2556: Contention in `TypeNameIdResolver.idFromClass()`
3535
(reported by Fabian L)
36+
#2560: Check `WRAP_EXCEPTIONS` in `CollectionDeserializer.handleNonArray()`
37+
(reported by Stefan W)
3638
3739
2.10.1 (09-Nov-2019)
3840

src/main/java/com/fasterxml/jackson/databind/deser/std/CollectionDeserializer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ protected final Collection<Object> handleNonArray(JsonParser p, DeserializationC
349349
value = valueDes.deserializeWithType(p, ctxt, typeDeser);
350350
}
351351
} catch (Exception e) {
352+
boolean wrap = (ctxt == null) || ctxt.isEnabled(DeserializationFeature.WRAP_EXCEPTIONS);
353+
if (!wrap) {
354+
ClassUtil.throwIfRTE(e);
355+
}
352356
// note: pass Object.class, not Object[].class, as we need element type for error info
353357
throw JsonMappingException.wrapWithPath(e, Object.class, result.size());
354358
}

0 commit comments

Comments
 (0)