You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please check that your build configuration is correct and lombok runs during your build. You can also check if your issue is related to a `javac' problem reported in issue #3331.
Hi Team,
I am migrating from SpringBoot 2.7.1 to 3.2.3 but Lombok @SuperBuilder is not working getting below error.
cannot find symbol.
private void fillInUserReportFields(UserReport.UserReportBuilder builder,
symbol: class UserReportBuilder
location: class UserReport
I was using lombok 1.18.30 version.
Also tried with below versions as well
1.18.32, 1.18.28, 1.18.22, 1.18.26
Please find the code below:
@Setter @getter @SuperBuilder @EqualsAndHashCode(callSuper = false)
@JsonPropertyOrder({"userId", "location" })
public class UserReport extends MessageBase
{
@JsonProperty(value = "userId", required = true)
private Integer userId;
@JsonProperty(value = "location", required = true)
private String location;
public UserReport (String userId, String location)
{
this.userId = Optional.ofNullable(userId).orElse(-1);
this.location = Optional.of(location).filter(StringUtils::isNotBlank).orElse(null);
}
}
@service
public class MessageService
{
private void fillInUserReportFields(UserReport.UserReportBuilder builder,
UserEvent event)
{
//body
}
@DaTa
@SuperBuilder @JsonPropertyOrder({ "messageType", "messageNumber"})
public class MessageBase
{
private static final Logger LOGGER = LogManager.getLogger();
@NotNull @notblank
private String messageType;
@NotNull @notblank
private int messageNumber;
private Integer requestNumber;
}
The text was updated successfully, but these errors were encountered: