Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeserializationContext.handleMissingInstantiator() throws MismatchedInputException for non-static inner classes #2522

Closed
cowtowncoder opened this issue Oct 24, 2019 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

(note: follow up to #2052

So, if no Creator (constructor or factory method) found for a value, exception thrown is of type MismatchedInputException which is bit misleading (even if message does explain what is occurring). This is because method called at the end is "reportInputMismatch()" instead of "reportBadDefinition()" -- this may be a simple copy-paste mistake as earlier call in same method uses "reportBadDefinition()".

@cowtowncoder cowtowncoder added this to the 2.11.0 milestone Oct 24, 2019
@cowtowncoder cowtowncoder changed the title DeserializationContext.handleMissingInstantiator() throws MismatchedInputException DeserializationContext.handleMissingInstantiator() throws MismatchedInputException for non-static inner classes Oct 24, 2019
@cowtowncoder cowtowncoder removed the 2.11 label Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant