FasterXML/jackson-databind — pull request #464 by q3aiml (2014-05-20 21:51:16+00:00)
Title: include JsonLocation in more mapping exceptions

It can be difficult to determine what input data is invalid when that data does not match the type expected, especially when the user is not aware of the Java details. Consider the message:

> Can not instantiate value of type [map type; class java.util.LinkedHashMap, [simple type, class java.lang.Object] -> [simple type, class java.lang.Object]] from String value; no single-String constructor/factory method (through reference chain: com.example.YamlConfig["loops"])```

This change includes the JsonLocation for various cases such as this. I find having this location info to be more helpful for certain types of users compared to the more technical, internal info in the message.

I'm not sure if I wedged the tests in the right place, though putting it in TestObjectMapperBeanDeserializer did prevent some duplication.

Thanks,
Andy