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
When I try to deserialize an Object which contains an non-static inner class the following error occurs:
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException:
Cannot construct instance of `outerclass$innerclass` (although at least one Creator exists):
can only instantiate non-static inner class by using default, no-argument constructor
I am using version 2.10.0.
In the last line 'non-static' must be 'static'.
The text was updated successfully, but these errors were encountered:
Actually. No, that is not true. This specifically refers to non-static inner classes (static ones can be instantiated using other mechanism).
But I will try to improve wording to make meaning clear, so it's a good report still. :)
cowtowncoder
changed the title
Error in Exception Message
Sub-optimal exception message when failing to deserialize non-static inner classes
Oct 24, 2019
When I try to deserialize an Object which contains an non-static inner class the following error occurs:
I am using version 2.10.0.
In the last line 'non-static' must be 'static'.
The text was updated successfully, but these errors were encountered: