Skip to content

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

@cowtowncoder

Description

@cowtowncoder

(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()".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions