lombok: java.lang.NoSuchFieldError - exception when building with Java 21 default

Bug #2054736 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lombok (Debian)
New
Unknown
lombok (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When building lombok-ast with default Java 21 the following exception in lombok
has occured casing the failure to build.
----
templateProcessor:
[compile:mkdir] Created dir: /<<PKGBUILDDIR>>/build/templateProcessor
[compile:javac] Compiling 10 source files to
/<<PKGBUILDDIR>>/build/templateProcessor
[ivy:compile] warning: [options] bootstrap class path not set in conjunction
with -source 8
[ivy:compile] warning: [options] source value 8 is obsolete and will be removed
in a future release
[ivy:compile] warning: [options] target value 8 is obsolete and will be removed
in a future release
[ivy:compile] warning: [options] To suppress warnings about obsolete options,
use -Xlint:-options.
[ivy:compile] 4 warnings
[ivy:compile]
[ivy:compile]
[ivy:compile] An annotation processor threw an uncaught exception.
[ivy:compile] Consult the following stack trace for details.
[ivy:compile] java.lang.NoSuchFieldError: Class
com.sun.tools.javac.tree.JCTree$JCImport does not have member field
'com.sun.tools.javac.tree.JCTree qualid'
[ivy:compile] at
lombok.javac.JavacImportList.getFullyQualifiedNameForSimpleNameNoAliasing(JavacImportList.java:53)
[ivy:compile] at
lombok.core.TypeResolver.typeRefToFullyQualifiedName(TypeResolver.java:60)
[ivy:compile] at
lombok.javac.HandlerLibrary.handleAnnotation(HandlerLibrary.java:247)
[ivy:compile] at
lombok.javac.JavacTransformer$AnnotationVisitor.visitAnnotationOnType(JavacTransformer.java:79)
[ivy:compile] at lombok.javac.JavacNode.traverse(JavacNode.java:132)
[ivy:compile] at lombok.javac.JavacAST.traverseChildren(JavacAST.java:222)
[ivy:compile] at lombok.javac.JavacNode.traverse(JavacNode.java:95)
[ivy:compile] at lombok.javac.JavacAST.traverseChildren(JavacAST.java:222)
[ivy:compile] at lombok.javac.JavacNode.traverse(JavacNode.java:95)
[ivy:compile] at lombok.javac.JavacAST.traverseChildren(JavacAST.java:222)
[ivy:compile] at lombok.javac.JavacNode.traverse(JavacNode.java:90)
[ivy:compile] at lombok.javac.JavacAST.traverse(JavacAST.java:218)
[ivy:compile] at
lombok.javac.JavacTransformer.transform(JavacTransformer.java:63)
[ivy:compile] at
lombok.javac.apt.LombokProcessor.process(LombokProcessor.java:328)
[ivy:compile] at
lombok.core.AnnotationProcessor$JavacDescriptor.process(AnnotationProcessor.java:187)
[ivy:compile] at
lombok.core.AnnotationProcessor.process(AnnotationProcessor.java:241)
[ivy:compile] at
lombok.launch.AnnotationProcessorHider$AnnotationProcessor.process(AnnotationProcessor.java:90)
[ivy:compile] at
jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:1021)
[ivy:compile] at
jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:937)
[ivy:compile] at
jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1265)
[ivy:compile] at
jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1380)
[ivy:compile] at
jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1272)
[ivy:compile] at
jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:946)
[ivy:compile] at
jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:319)
[ivy:compile] at
jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:178)
[ivy:compile] at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:64)
[ivy:compile] at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[ivy:compile] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[ivy:compile] at
org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:57)
[ivy:compile] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1352)
[ivy:compile] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1092)
[ivy:compile] at com.zwitserloot.ivyplusplus.Compile.execute(Unknown Source)
[ivy:compile] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[ivy:compile] at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[ivy:compile] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[ivy:compile] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[ivy:compile] at org.apache.tools.ant.Task.perform(Task.java:350)
[ivy:compile] at org.apache.tools.ant.Target.execute(Target.java:449)
[ivy:compile] at org.apache.tools.ant.Target.performTasks(Target.java:470)
[ivy:compile] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
[ivy:compile] at
org.apache.tools.ant.Project.executeTarget(Project.java:1374)
[ivy:compile] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[ivy:compile] at
org.apache.tools.ant.Project.executeTargets(Project.java:1264)
[ivy:compile] at org.apache.tools.ant.Main.runBuild(Main.java:818)
[ivy:compile] at org.apache.tools.ant.Main.startAnt(Main.java:223)
[ivy:compile] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
[ivy:compile] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)

BUILD FAILED
/<<PKGBUILDDIR>>/build.xml:94: Compile failed; see the compiler error output
for details.

Related branches

Changed in lombok (Debian):
status: Unknown → New
Revision history for this message
Vladimir Petko (vpa1977) wrote :

piuparts install/upgrade/purge test (pass)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lombok - 1.18.24-2ubuntu1

---------------
lombok (1.18.24-2ubuntu1) noble; urgency=medium

  * d/p/java21-support.patch: add upstream patch that fixes Java 21
    compatibility issues (LP: #2054736).

 -- Vladimir Petko <email address hidden> Thu, 22 Feb 2024 12:04:45 +1300

Changed in lombok (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.