Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

149 views
Skip to first unread message

Vladimir Petko

unread,
Dec 5, 2023, 4:30:04 PM12/5/23
to
Source: lombok
Version: 1.18.24-1
Severity: important
User: debia...@lists.debian.org
Usertags: default-java21

Dear Maintainer,

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.

----


-- System Information:
Debian Release: trixie/sid
APT prefers mantic-updates
APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-13-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Vladimir Petko

unread,
Feb 21, 2024, 6:50:04 PM2/21/24
to
Dear Maintainers,

I apologise, in the previous MR I have forgotten to add Java 21
runtime support patch[1] and the issue is still present[2]. I have
reopened the bug.

Best Regards,
Vladimir.

[1] https://github.com/projectlombok/lombok/commit/f6ca064d752a85ca799978b1afc87510c5e220f1
[2] https://launchpad.net/~vpa1977/+archive/ubuntu/october-21/+build/27797937/+files/buildlog_ubuntu-noble-amd64.ddogleg_0.22+ds-1_BUILDING.txt.gz

Vladimir Petko

unread,
Feb 21, 2024, 7:50:04 PM2/21/24
to
Apologies for the wrong build link, the correct one is for jcabi-log[1]

[1] https://launchpadlibrarian.net/715257895/buildlog_ubuntu-noble-amd64.jcabi-log_0.19.0-1_BUILDING.txt.gz

Vladimir Petko

unread,
Feb 21, 2024, 8:10:05 PM2/21/24
to
Dear Maintainers,

Would it be possible to consider a merge request[1] that addresses this issue?

Best Regards,
Vladimir.

[1] https://salsa.debian.org/java-team/lombok/-/merge_requests/3
0 new messages