[BUG] Accessing `ConstructorDeclaration.constructorCall` fails with the latest Eclipse version
Author: datho7561Created Sep 10, 2026Updated Sep 10, 2026
Describe the bug
The latest Eclipse version changes ConstructorDeclaration.constructorCall from a field to a method. As a result, when lombok tries to access it through reflection, an exception is thrown, and the background project build job fails.
Here's a sample stacktrace:
java.lang.NoSuchFieldError: Class org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration does not have member field 'org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall constructorCall'
at lombok.eclipse.EclipseAST.buildMethod(EclipseAST.java:468)
at lombok.eclipse.EclipseAST.buildMethods(EclipseAST.java:458)
at lombok.eclipse.EclipseAST.buildType(EclipseAST.java:400)
at lombok.eclipse.EclipseAST.buildTypes(EclipseAST.java:390)
at lombok.eclipse.EclipseAST.buildCompilationUnit(EclipseAST.java:380)
at lombok.eclipse.EclipseAST.<init>(EclipseAST.java:72)
at lombok.eclipse.TransformEclipseAST.getAST(TransformEclipseAST.java:118)
at lombok.eclipse.agent.PatchExtensionMethod.getTypeNode(PatchExtensionMethod.java:169)
at lombok.eclipse.agent.PatchExtensionMethod.resolveType(PatchExtensionMethod.java:260)To Reproduce
- Install Eclipse
- Install lombok by adding the update site https://projectlombok.org/p2
- Install the 4.42 ibuilds (the nightly builds) by adding this update: https://download.eclipse.org/eclipse/updates/4.42-I-builds , then updating Eclipse
- Open any java project (I don't think it even needs to explicitly contain lombok)
Expected behavior No crash
Version info (please complete the following information):
- Lombok version: 1.18.48
- Platform: Eclipse 4.42
Additional context First noticed in failing test cases in jdtls and vscode-java
Source: projectlombok/lombok