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
When I tried to migrate from STS 4.21 to STS 4.22 I got an error in STS UI and the stacktrace in the log:
java.lang.NoSuchMethodError: 'void org.eclipse.jdt.internal.compiler.ast.CaseStatement.<init>(org.eclipse.jdt.internal.compiler.ast.Expression, int, int)'
at lombok.eclipse.Eclipse.createCaseStatement(Eclipse.java:285)
at lombok.eclipse.handlers.singulars.EclipseJavaUtilListSingularizer.appendBuildCode(EclipseJavaUtilListSingularizer.java:75)
at lombok.eclipse.handlers.HandleBuilder.generateBuildMethod(HandleBuilder.java:821)
at lombok.eclipse.handlers.HandleBuilder.handle(HandleBuilder.java:563)
at lombok.eclipse.HandlerLibrary$AnnotationHandlerContainer.handle(HandlerLibrary.java:106)
at lombok.eclipse.HandlerLibrary.handleAnnotation(HandlerLibrary.java:237)
at lombok.eclipse.TransformEclipseAST$AnnotationVisitor.visitAnnotationOnType(TransformEclipseAST.java:269)
I look into the code and it seems that CaseStatement class from Eclipse JDT doesn't have constructor that accepts Expression/int/int.
It was changed 3 weeks ago:
public CaseStatement(Expression[] constantExpressions, int sourceStart, int sourceEnd) {
this.constantExpressions = constantExpressions;
this.sourceStart = sourceStart;
this.sourceEnd = sourceEnd;
}
To Reproduce
Open any workspace project in STS 4.22.0.
Expected behavior
No error should occur
Version info (please complete the following information):
Lombok 1.18.32
STS 4.22.0
JDK 22.0.0
The text was updated successfully, but these errors were encountered:
The eclipse team merged these changes to the Java 22 support plugin, we didn't anticipated that and released the latest lombok version without the fix for it to not further delay it. You can find a build with the fix here.
Describe the bug
When I tried to migrate from STS 4.21 to STS 4.22 I got an error in STS UI and the stacktrace in the log:
I look into the code and it seems that CaseStatement class from Eclipse JDT doesn't have constructor that accepts Expression/int/int.
It was changed 3 weeks ago:
To Reproduce
Open any workspace project in STS 4.22.0.
Expected behavior
No error should occur
Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: