Skip to content

Commit e4b261e

Browse files
committed
...
1 parent b2ccdee commit e4b261e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,8 @@ protected SettableBeanProperty constructSettableProperty(DeserializationContext
713713
// never needed and attempts may cause problems on some platforms.
714714
// !!! NOTE: should be handled better for 2.8 and later
715715
if ((mutator instanceof AnnotatedField)
716-
&& "cause".equals(mutator.getName())) {
716+
&& "cause".equals(mutator.getName())
717+
&& Throwable.class.isAssignableFrom(propType0.getRawClass())) {
717718
;
718719
} else {
719720
mutator.fixAccess(ctxt.isEnabled(MapperFeature.OVERRIDE_PUBLIC_ACCESS_MODIFIERS));

0 commit comments

Comments
 (0)