Skip to content

Annotation to ignore serialization not working with particular variable name (like dLogHeader) #2835

Closed
@xlm13x

Description

@xlm13x

Describe the bug
Any annotation to ignore property is not working with a particular variable name is used.

Version information
2.11.2 (Spring Boot 2.1.3.RELEASE)

To Reproduce
Below does not work, tried with @JsonIgnore @JsonIgnoreProperty @JsonBackReference.
The value gets serialized in json always, no matter whatever annotation is used.

@JsonBackReference
private ClassName dLogHeader;

But if the variable name is changed then it starts working and does not serialize it.

@JsonBackReference
private ClassName logHeader;

Metadata

Metadata

Assignees

No one assigned

    Labels

    lombokIssue (likely) related to use of Lombokproperty-iPhoneIssue related to naming issue for fields like "iPhone"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions