Skip to content

[BUG] com.fasterxml.jackson.annotation.JsonProperty is not a repeatable annotation interface #3934

@Airblader

Description

@Airblader

Describe the bug

We have a class that looks like this:

@Value
@Accessors(fluent = true)
@NoArgsConstructor(force = true, access = AccessLevel.PRIVATE)
@AllArgsConstructor
@Getter(onMethod = @__(@JsonProperty))
public class ListMeta {
  @JsonProperty("continue")
  private final String continue_;
}

This worked fine in 1.18.38, but updating to 1.18.40 we get

ListMeta.java:[14,24] com.fasterxml.jackson.annotation.JsonProperty is not a repeatable annotation interface

Expected behavior
It should work as before. 🙂

Version info (please complete the following information):
Lombok 1.18.40

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions