aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatu Saloranta <tatu.saloranta@iki.fi>2020-07-28 17:14:12 -0700
committerTatu Saloranta <tatu.saloranta@iki.fi>2020-07-28 17:14:12 -0700
commit6f731274d38856bf943345a9b19aa92fdd799b33 (patch)
treecbf7cde105d9db21fa53840c57436126390d00cd
parente855ccb41a925f2b42caf773e4842355fca70206 (diff)
downloadjackson-databind-6f731274d38856bf943345a9b19aa92fdd799b33.tar.gz
Fixed #2805
-rw-r--r--release-notes/VERSION-2.x1
-rw-r--r--src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java4
2 files changed, 2 insertions, 3 deletions
diff --git a/release-notes/VERSION-2.x b/release-notes/VERSION-2.x
index 755d8bdca..3a32e87ff 100644
--- a/release-notes/VERSION-2.x
+++ b/release-notes/VERSION-2.x
@@ -53,6 +53,7 @@ Project: jackson-databind
#2784: Trailing zeros are stripped when deserializing BigDecimal values inside a
@JsonUnwrapped property
(reported by mjustin@github)
+#2805: Remove `JsonProcessingException` from `ObjectMapper.treeToValue()`
- Add `BeanDeserializerBase.isCaseInsensitive()`
- Some refactoring of `CollectionDeserializer` to solve CSV array handling issues
diff --git a/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java b/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java
index df1c6ebab..e474e87d2 100644
--- a/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java
+++ b/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java
@@ -3210,8 +3210,6 @@ public class ObjectMapper
}
}
return readValue(treeAsTokens(n), valueType);
- } catch (JsonProcessingException e) {
- throw e;
} catch (IOException e) { // should not occur, no real i/o...
throw new IllegalArgumentException(e.getMessage(), e);
}
@@ -3262,7 +3260,7 @@ public class ObjectMapper
}
return (T) result;
}
-
+
/*
/**********************************************************
/* Extended Public API, accessors