-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Milestone
Description
See redhat-developer/vscode-java#4050
Describe the bug
Annotating a Java record with @Builder
produces The constructor ... is undefined
To Reproduce
Use vscode-java 1.42.0 and with a project that uses lombok, simply annotate a record with @Builder
.
package org.example;
import java.util.List;
import lombok.Builder;
@Builder
public record Example(List<String> list) {
}
This probably happens with any Lombok version because vscode-java 1.42.0 uses JDT-LS 1.47.0, which is using the latest JDT Core. Recently, JDT Core made some updates to records : eclipse-jdt/eclipse.jdt.core#3925 , eclipse-jdt/eclipse.jdt.core#3980 so likely that lombok needs to adjust some of its usage of JDT Core.
lcf, tienipia, mamilic, heyarny, aorwall-frankpenny and 39 more