Skip to content

Sub-optimal exception message when failing to deserialize non-static inner classes #2520

@mark--

Description

@mark--

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'.

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