vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Lombok: Duplicate annotation of non-repeatable type @JsonProperty.

Open mathieufortin01 opened this issue 2 months ago • 3 comments

I went from 1.41 to 1.49. Downgraded to 1.48, 1.47, 1.46 with same issue, so not sure when that started. I cannot go back too far since I think it becomes incompatible with Cursor.

It seems that this is the issue: https://github.com/projectlombok/lombok/issues/3946

And theres this PR that supposedly would fix it: https://github.com/projectlombok/lombok/pull/3963

To reproduce (taken from other issue, same error in vscode):

Set up lombok.config with lombok.copyJacksonAnnotationsToAccessors=true. Create a class like the one below in Eclipse with Lombok plugin installed.

@Data public class Person {

@JsonProperty("name")
private String name;

}

This seems like a fairly important fix. Any way to fasttrack that fix on the other side ?

Thanks!

mathieufortin01 avatar Nov 20 '25 13:11 mathieufortin01

We have no more sway than anyone else here. Can't do more than giving a nudge to that PR

fbricon avatar Nov 21 '25 11:11 fbricon

Same issue here it broke my flow on vscode with a lot of Duplicate annotation of non-repeatable type @JsonProperty. Only annotation types marked @Repeatable can be used multiple times at one target. errors

pastouret avatar Nov 24 '25 15:11 pastouret

For anyone ending up because of the same issue I'm sharing my workaround. Add into a lombok.config this line lombok.copyJacksonAnnotationsToAccessors = false

pastouret avatar Nov 28 '25 21:11 pastouret