Bug#1012063: cofoja: FTBFS with OpenJDK 17: module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module
Emmanuel Bourg
ebourg at apache.org
Sun May 29 17:01:13 BST 2022
Source: cofoja
Version: 1.3-4
Severity: important
Tags: ftbfs sid bookworm
User: debian-java at lists.debian.org
Usertags: default-java17
cofoja fails to build with OpenJDK 17:
dh_auto_build -- dist -Dcofoja.bare.jar=dist/cofoja.jar
ant -Duser.name debian dist -Dcofoja.bare.jar=dist/cofoja.jar
Buildfile: /<<PKGBUILDDIR>>/build.xml
configure:
[echo] Configuration
[echo] -------------
[echo] Snapshot: true
[echo] Debug: true
init:
[tstamp] Honouring environment variable SOURCE_DATE_EPOCH which has been set to 1543526457
[mkdir] Created dir: /<<PKGBUILDDIR>>/obj
[mkdir] Created dir: /<<PKGBUILDDIR>>/dist
build:
[mkdir] Created dir: /<<PKGBUILDDIR>>/obj/bare
[ujavac] Compiling 86 source files to /<<PKGBUILDDIR>>/obj/bare
[ujavac] Note: Some input files use or override a deprecated API.
[ujavac] Note: Recompile with -Xlint:deprecation for details.
[ujavac] Note: /<<PKGBUILDDIR>>/src/com/google/java/contract/util/Predicates.java uses unchecked or unsafe operations.
[ujavac] Note: Recompile with -Xlint:unchecked for details.
nobootstrap:
[jar] Building jar: /<<PKGBUILDDIR>>/dist/cofoja.jar
[jar] Building jar: /<<PKGBUILDDIR>>/dist/cofoja+asm-1.2-19700119.jar
antinit:
[mkdir] Created dir: /<<PKGBUILDDIR>>/obj/build
[ujavac] Compiling 1 source file to /<<PKGBUILDDIR>>/obj/build
[ujavac]
[ujavac]
[ujavac] An annotation processor threw an uncaught exception.
[ujavac] Consult the following stack trace for details.
[ujavac] java.lang.LinkageError: class com.google.java.contract.core.apt.AnnotationProcessor cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because
module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @f4c0e4e
[ujavac] at com.google.java.contract.core.apt.AnnotationProcessor.getJavacOptions(AnnotationProcessor.java:181)
[ujavac] at com.google.java.contract.core.apt.AnnotationProcessor.setupPaths(AnnotationProcessor.java:268)
[ujavac] at com.google.java.contract.core.apt.AnnotationProcessor.init(AnnotationProcessor.java:201)
[ujavac] at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.<init>(JavacProcessingEnvironment.java:701)
[ujavac] at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.next(JavacProcessingEnvironment.java:828)
[ujavac] at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:924)
[ujavac] at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1267)
[ujavac] at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1382)
[ujavac] at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1234)
[ujavac] at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:916)
[ujavac] at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:317)
[ujavac] at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:176)
[ujavac] at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:64)
[ujavac] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ujavac] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[ujavac] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ujavac] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[ujavac] at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:57)
[ujavac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1352)
[ujavac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1092)
[ujavac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[ujavac] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[ujavac] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ujavac] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[ujavac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[ujavac] at org.apache.tools.ant.Task.perform(Task.java:350)
[ujavac] at org.apache.tools.ant.Target.execute(Target.java:449)
[ujavac] at org.apache.tools.ant.Target.performTasks(Target.java:470)
[ujavac] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
[ujavac] at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
[ujavac] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[ujavac] at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
[ujavac] at org.apache.tools.ant.Main.runBuild(Main.java:818)
[ujavac] at org.apache.tools.ant.Main.startAnt(Main.java:223)
[ujavac] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
[ujavac] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
BUILD FAILED
/<<PKGBUILDDIR>>/build.xml:252: Compile failed; see the compiler error output for details.
More information about the pkg-java-maintainers
mailing list