commit | 2a5d022e642fe82caae7055298e43ebe2e9ce2f2 | [log] [tgz] |
---|---|---|
author | Tatu Saloranta <tatu.saloranta@iki.fi> | Fri Jul 06 17:00:22 2018 -0700 |
committer | Tatu Saloranta <tatu.saloranta@iki.fi> | Fri Jul 06 17:00:22 2018 -0700 |
tree | aebe08ee8f835289f160ecf90119e80d9e02b09e | |
parent | d3a715a7e129ebdc51eaf501b213b1ee8fc2e877 [diff] |
Fix #2082
diff --git a/release-notes/VERSION-2.x b/release-notes/VERSION-2.x index cc09644..0b483c9 100644 --- a/release-notes/VERSION-2.x +++ b/release-notes/VERSION-2.x
@@ -9,6 +9,7 @@ #2060: `UnwrappingBeanPropertyWriter` incorrectly assumes the found serializer is of type `UnwrappingBeanSerializer` (reported by Petar T) +#2082: `FactoryBasedEnumDeserializer` should be cachable 2.9.6 (12-Jun-2018)
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/std/FactoryBasedEnumDeserializer.java b/src/main/java/com/fasterxml/jackson/databind/deser/std/FactoryBasedEnumDeserializer.java index 8802f5a..86a68d9 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/std/FactoryBasedEnumDeserializer.java +++ b/src/main/java/com/fasterxml/jackson/databind/deser/std/FactoryBasedEnumDeserializer.java
@@ -99,6 +99,10 @@ return Boolean.FALSE; } + // since 2.9.7: should have been the case earlier but + @Override + public boolean isCachable() { return true; } + @Override public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {