FasterXML / jackson-annotations

Core annotations (annotations that only depend on jackson-core) for Jackson data processor
https://github.com/FasterXML/jackson
Apache License 2.0
1.03k stars 330 forks source link

Allow `@JsonAnySetter` on `ElementType.PARAMETER` (for use on constructor parameters) #242

Closed cowtowncoder closed 9 months ago

cowtowncoder commented 9 months ago

To potentially support usage like:

public class POJO
{
    @JsonCreator
    public POJO562(@JsonProperty("a") String a,
        @JsonAnySetter Map<String, Object> leftovers) {
        ...
    }
}

it is necessary change access to include ElementType.PARAMETER. Let's do that.