Skip to content

Include name of unsettable property in exception from SetterlessProperty.set() #1843

@andreh7

Description

@andreh7

While using jackson to serialize classes which deviate quite a bit from JavaBeans requirements, I've been struggling figuring out which property SetterlessProperty.set() complains about when it is called. Setting a breakpoint in this method and inspecting this in the debugger clarified this (the class is already contained in the error message Cannot construct instance of <classname>).

Adding the name of the property to the exception message e.g. like in commit d427ba5 would greatly simplify hunting down such errors. (this commit can be turned into a pull request easily).

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