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

[BUG] No processing of Lombok annotations with values in Spring Tool Suite 4.22.0 #3630

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

Comments

@explorer566
Copy link

Describe the bug
Lombok annotations with values don't get processed. This happens with Lombok 1.18.30 on Windows 10 with Java 17 in Eclipse Spring Tool Suite 4.22.0 and was working in previous versions of STS.

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.

Version info

  • Lombok 1.18.30
  • Windows 10, Java 17, Eclipse Spring Tool Suite 4.22.0
@martinlippert
Copy link

Most likely related to #3620, since the Spring Tools 4.22.0 for Eclipse are based on Eclipse 2024-03.

@explorer566
Copy link
Author

Problem is fixed with Edge version 1.18.31 from 2024-1-12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants