Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with lombok annotations #1208

Closed
explorer566 opened this issue Mar 16, 2024 · 4 comments
Closed

Problems with lombok annotations #1208

explorer566 opened this issue Mar 16, 2024 · 4 comments
Labels
for: eclipse something that is specific for Eclipse status: duplicate type: bug

Comments

@explorer566
Copy link

explorer566 commented Mar 16, 2024

Problem
Lombok annotations with values don't get processed. This happens in STS 4.22.0 and was working in previous versions.

Working example

 import java.io.Serializable;
 import java.time.LocalDate;
 import lombok.EqualsAndHashCode;
 import lombok.Getter;
 import lombok.Setter;
 import lombok.ToString;

    @Getter
@Setter
@EqualsAndHashCode()
@ToString()
public class Test implements Serializable {

	private String myString;

	private LocalDate myDate;
}

Generates getter, setter, equals, hashCode und toString methods.

Non working example

 import java.io.Serializable;
 import java.time.LocalDate;
 import lombok.EqualsAndHashCode;
 import lombok.Getter;
 import lombok.Setter;
 import lombok.ToString;

@Getter
@Setter
@EqualsAndHashCode(of = { "myString", "myDate" })
@ToString(doNotUseGetters = true)
public class Test implements Serializable {

	private String myString;

	private LocalDate myDate;
}

Generates only getter and setter methods.

@explorer566
Copy link
Author

I am using STS 4.22.0 under Windows and Lombok 1.18.30

@martinlippert martinlippert added for: eclipse something that is specific for Eclipse status: duplicate and removed status: waiting-for-triage labels Mar 16, 2024
@martinlippert
Copy link
Member

This is probably a duplicate of projectlombok/lombok#3630, therefore closing this one here. Looks like the Lombok support for Eclipse is not yet compatible with the latest Eclipse 2024-03 release, which is the base for the latest Spring Tools 4.22.0 release.

@martinlippert martinlippert closed this as not planned Won't fix, can't repro, duplicate, stale Mar 16, 2024
@martinlippert
Copy link
Member

Another related issue: projectlombok/lombok#3620. Maybe worth to give the latest Lombok edge release a try: https://projectlombok.org/download-edge

@martinlippert
Copy link
Member

According to projectlombok/lombok#3630 (comment), this is fixed in the latest Lombok Edge release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse status: duplicate type: bug
Projects
None yet
Development

No branches or pull requests

2 participants