Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.1
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
http://jackson.codehaus.org/1.9.0/javadoc/org/codehaus/jackson/map/ObjectMapper.html
Has been there since 1.3
This is an annoying an exception declaration that isn't even thrown in most scenarios and makes testing more difficult and annoying.
It may seem superfluous, but the problem is that under the hood, String is read using StringReader, written using StringWriter: and since these are handled as Reader/Writer, which declare IOExceptions as being thrown the only clean way to remove these would be to duplicate a whole lot of code.
Or, catch unexpected IOException, throw others.
I'll have to think whether this is worth addressing – anyone who really would like to eliminate this, please vote.