You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Main problem: ObjectMapper.treeToValue looks very similar to ObjectMapper.readValue but suffers from type erasure.
It is very simple to missuse it.
Current behaviour is because ObjectMapper.treeToValue(TreeNode, TypeReference) does not exist.
As suggested in FasterXML/jackson-databind#1294 we can use readValue or convertValue.
Describe the solution you'd like
Let's either:
reimplement ObjectMapper.treeToValue in type-safe way