diff options
author | Tatu Saloranta <tatu.saloranta@iki.fi> | 2020-06-23 20:14:50 -0700 |
---|---|---|
committer | Tatu Saloranta <tatu.saloranta@iki.fi> | 2020-06-23 20:14:50 -0700 |
commit | 1473b0341791205c809982161ebb804d8ed5a359 (patch) | |
tree | 56ae97c93d6da450b66eb805a56ae11c60779df8 /src/main/java/com/fasterxml/jackson/databind/deser | |
parent | 7e3aa6f977e81718a20ddd584e4bdca71d018074 (diff) | |
download | jackson-databind-1473b0341791205c809982161ebb804d8ed5a359.tar.gz |
Fixed #2758
Diffstat (limited to 'src/main/java/com/fasterxml/jackson/databind/deser')
-rw-r--r-- | src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java b/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java index 0df42e025..9c84bedd8 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java +++ b/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java @@ -875,9 +875,8 @@ name, ((AnnotatedParameter) m).getIndex()); if (ClassUtil.isProxyType(type)) { throw new IllegalArgumentException("Cannot deserialize Proxy class "+type.getName()+" as a Bean"); } - /* also: can't deserialize some local classes: static are ok; in-method not; - * other non-static inner classes are ok - */ + // also: can't deserialize some local classes: static are ok; in-method not; + // other non-static inner classes are ok typeStr = ClassUtil.isLocalType(type, true); if (typeStr != null) { throw new IllegalArgumentException("Cannot deserialize Class "+type.getName()+" (of type "+typeStr+") as a Bean"); |