Skip to content

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

Description

@mathieufortin01

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: projectlombok/lombok#3946

And theres this PR that supposedly would fix it: projectlombok/lombok#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!

Activity

  1. fbricon commented on Nov 21, 2025

    @fbricon
    Collaborator

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

  2. pastouret commented on Nov 24, 2025

    @pastouret

    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

  3. pastouret commented on Nov 28, 2025

    @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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions