We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2ccdee commit e4b261eCopy full SHA for e4b261e
src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java
@@ -713,7 +713,8 @@ protected SettableBeanProperty constructSettableProperty(DeserializationContext
713
// never needed and attempts may cause problems on some platforms.
714
// !!! NOTE: should be handled better for 2.8 and later
715
if ((mutator instanceof AnnotatedField)
716
- && "cause".equals(mutator.getName())) {
+ && "cause".equals(mutator.getName())
717
+ && Throwable.class.isAssignableFrom(propType0.getRawClass())) {
718
;
719
} else {
720
mutator.fixAccess(ctxt.isEnabled(MapperFeature.OVERRIDE_PUBLIC_ACCESS_MODIFIERS));
0 commit comments