Bug#1134288: junit5: FTBFS: method data in class org.opentest4j.reporting.events.core.CoreFactory cannot be applied to given types
Santiago Vila
sanvila at debian.org
Sat Apr 18 18:31:50 BST 2026
Package: src:junit5
Version: 5.10.3-1
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202604/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:junit5, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem=maven --with javahelper
dh_auto_clean -O--buildsystem=maven
bash -c "for dir in \$(find . -name target -type d); do if [ -f \$(echo \$dir | sed -e s/target\$/pom.xml/) ]; then rm -Rf \$dir; fi done"
mh_unpatchpoms -pjunit5
dh_autoreconf_clean -O--buildsystem=maven
jh_clean -O--buildsystem=maven
Duplicate specification "unlink|u" for option "u"
dh_clean -O--buildsystem=maven
debian/rules binary
dh binary --buildsystem=maven --with javahelper
dh_update_autotools_config -O--buildsystem=maven
dh_autoreconf -O--buildsystem=maven
dh_auto_configure -O--buildsystem=maven
mh_patchpoms -pjunit5 --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
[... snipped ...]
[INFO] Tests are skipped.
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) @ junit-platform-engine ---
[INFO] Building jar: /<<PKGBUILDDIR>>/junit-platform-engine/target/junit-platform-engine-1.9.1.jar
[INFO]
[INFO] ------------< org.junit.platform:junit-platform-suite-api >-------------
[INFO] Building JUnit Platform Suite API 1.9.1 [7/19]
[INFO] from junit-platform-suite-api/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- build-helper:3.3.0:add-resource (default) @ junit-platform-suite-api ---
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ junit-platform-suite-api ---
[INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/junit-platform-suite-api/src/main/resources
[INFO] Copying 2 resources from .. to target/classes/META-INF
[INFO] Copying 0 resource from . to target/classes/META-INF
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ junit-platform-suite-api ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 26 source files with javac [debug target 8] to target/classes
[WARNING] bootstrap class path is not set in conjunction with -source 8
not setting the bootstrap class path may lead to class files that cannot run on JDK 8
--release 8 is recommended instead of -source 8 -target 8 because it sets the bootstrap class path automatically
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
[INFO]
[INFO] --- compiler:3.13.0:compile (compile-java-9) @ junit-platform-suite-api ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ junit-platform-suite-api ---
[INFO] Not copying test resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ junit-platform-suite-api ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- surefire:2.22.3:test (default-test) @ junit-platform-suite-api ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) @ junit-platform-suite-api ---
[INFO] Building jar: /<<PKGBUILDDIR>>/junit-platform-suite-api/target/junit-platform-suite-api-1.9.1.jar
[INFO]
[INFO] ---------------< org.junit.jupiter:junit-jupiter-engine >---------------
[INFO] Building JUnit Jupiter Engine 5.10.2 [8/19]
[INFO] from junit-jupiter-engine/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- build-helper:3.3.0:add-resource (default) @ junit-jupiter-engine ---
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ junit-jupiter-engine ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO] Copying 2 resources from .. to target/classes/META-INF
[INFO] Copying 0 resource from . to target/classes/META-INF
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ junit-jupiter-engine ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 100 source files with javac [debug target 8] to target/classes
[WARNING] bootstrap class path is not set in conjunction with -source 8
not setting the bootstrap class path may lead to class files that cannot run on JDK 8
--release 8 is recommended instead of -source 8 -target 8 because it sets the bootstrap class path automatically
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
[INFO]
[INFO] --- compiler:3.13.0:compile (compile-java-9) @ junit-jupiter-engine ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ junit-jupiter-engine ---
[INFO] Not copying test resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ junit-jupiter-engine ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- surefire:2.22.3:test (default-test) @ junit-jupiter-engine ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) @ junit-jupiter-engine ---
[INFO] Building jar: /<<PKGBUILDDIR>>/junit-jupiter-engine/target/junit-jupiter-engine-5.10.2.jar
[INFO]
[INFO] ------------------< org.junit.jupiter:junit-jupiter >-------------------
[INFO] Building JUnit Jupiter (Aggregator) 5.10.2 [9/19]
[INFO] from junit-jupiter/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- build-helper:3.3.0:add-resource (default) @ junit-jupiter ---
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ junit-jupiter ---
[INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/junit-jupiter/src/main/resources
[INFO] Copying 2 resources from .. to target/classes/META-INF
[INFO] Copying 0 resource from . to target/classes/META-INF
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ junit-jupiter ---
[INFO] No sources to compile
[INFO]
[INFO] --- compiler:3.13.0:compile (compile-java-9) @ junit-jupiter ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ junit-jupiter ---
[INFO] Not copying test resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ junit-jupiter ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- surefire:2.22.3:test (default-test) @ junit-jupiter ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) @ junit-jupiter ---
[INFO] Building jar: /<<PKGBUILDDIR>>/junit-jupiter/target/junit-jupiter-5.10.2.jar
[INFO]
[INFO] ----------< org.junit.jupiter:junit-jupiter-migrationsupport >----------
[INFO] Building JUnit Jupiter Migration Support 5.10.2 [10/19]
[INFO] from junit-jupiter-migrationsupport/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- build-helper:3.3.0:add-resource (default) @ junit-jupiter-migrationsupport ---
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ junit-jupiter-migrationsupport ---
[INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/junit-jupiter-migrationsupport/src/main/resources
[INFO] Copying 2 resources from .. to target/classes/META-INF
[INFO] Copying 0 resource from . to target/classes/META-INF
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ junit-jupiter-migrationsupport ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 21 source files with javac [debug target 8] to target/classes
[WARNING] bootstrap class path is not set in conjunction with -source 8
not setting the bootstrap class path may lead to class files that cannot run on JDK 8
--release 8 is recommended instead of -source 8 -target 8 because it sets the bootstrap class path automatically
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
[INFO]
[INFO] --- compiler:3.13.0:compile (compile-java-9) @ junit-jupiter-migrationsupport ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ junit-jupiter-migrationsupport ---
[INFO] Not copying test resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ junit-jupiter-migrationsupport ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- surefire:2.22.3:test (default-test) @ junit-jupiter-migrationsupport ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) @ junit-jupiter-migrationsupport ---
[INFO] Building jar: /<<PKGBUILDDIR>>/junit-jupiter-migrationsupport/target/junit-jupiter-migrationsupport-5.10.2.jar
[INFO]
[INFO] -------------< org.junit.platform:junit-platform-launcher >-------------
[INFO] Building JUnit Platform Launcher 1.9.1 [11/19]
[INFO] from junit-platform-launcher/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- build-helper:3.3.0:add-resource (default) @ junit-platform-launcher ---
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ junit-platform-launcher ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO] Copying 2 resources from .. to target/classes/META-INF
[INFO] Copying 0 resource from . to target/classes/META-INF
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ junit-platform-launcher ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 80 source files with javac [debug target 8] to target/classes
[WARNING] bootstrap class path is not set in conjunction with -source 8
not setting the bootstrap class path may lead to class files that cannot run on JDK 8
--release 8 is recommended instead of -source 8 -target 8 because it sets the bootstrap class path automatically
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
[INFO]
[INFO] --- compiler:3.13.0:compile (compile-java-9) @ junit-platform-launcher ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ junit-platform-launcher ---
[INFO] Not copying test resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ junit-platform-launcher ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- surefire:2.22.3:test (default-test) @ junit-platform-launcher ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) @ junit-platform-launcher ---
[INFO] Building jar: /<<PKGBUILDDIR>>/junit-platform-launcher/target/junit-platform-launcher-1.9.1.jar
[INFO]
[INFO] ------------< org.junit.platform:junit-platform-reporting >-------------
[INFO] Building JUnit Platform Reporting 1.9.1 [12/19]
[INFO] from junit-platform-reporting/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- build-helper:3.3.0:add-resource (default) @ junit-platform-reporting ---
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ junit-platform-reporting ---
[INFO] Copying 3 resources from src/main/resources to target/classes
[INFO] Copying 2 resources from .. to target/classes/META-INF
[INFO] Copying 1 resource from . to target/classes/META-INF
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ junit-platform-reporting ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 13 source files with javac [debug target 8] to target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] bootstrap class path is not set in conjunction with -source 8
not setting the bootstrap class path may lead to class files that cannot run on JDK 8
--release 8 is recommended instead of -source 8 -target 8 because it sets the bootstrap class path automatically
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
[INFO] 4 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /<<PKGBUILDDIR>>/junit-platform-reporting/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java:[239,102] method data in class org.opentest4j.reporting.events.core.CoreFactory cannot be applied to given types;
required: java.time.LocalDateTime
found: no arguments
reason: actual and formal argument lists differ in length
[ERROR] /<<PKGBUILDDIR>>/junit-platform-reporting/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java:[240,37] cannot find symbol
symbol: method withTime(java.time.LocalDateTime)
location: variable data of type C
[ERROR] /<<PKGBUILDDIR>>/junit-platform-reporting/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java:[241,66] invalid method reference
cannot find symbol
symbol: method addEntry(K,V)
location: bound of type variable C
[INFO] 3 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] JUnit 5 (Parent) 5.10.2 ............................ SUCCESS [ 0.214 s]
[INFO] JUnit 5 (Bill of Materials) 5.10.2 ................. SUCCESS [ 0.002 s]
[INFO] JUnit Platform Commons 1.9.1 ....................... SUCCESS [ 1.968 s]
[INFO] JUnit Jupiter API 5.10.2 ........................... SUCCESS [ 0.896 s]
[INFO] JUnit Jupiter Params 5.10.2 ........................ SUCCESS [ 0.738 s]
[INFO] JUnit Platform Engine API 1.9.1 .................... SUCCESS [ 0.624 s]
[INFO] JUnit Platform Suite API 1.9.1 ..................... SUCCESS [ 0.086 s]
[INFO] JUnit Jupiter Engine 5.10.2 ........................ SUCCESS [ 0.623 s]
[INFO] JUnit Jupiter (Aggregator) 5.10.2 .................. SUCCESS [ 0.059 s]
[INFO] JUnit Jupiter Migration Support 5.10.2 ............. SUCCESS [ 0.098 s]
[INFO] JUnit Platform Launcher 1.9.1 ...................... SUCCESS [ 0.413 s]
[INFO] JUnit Platform Reporting 1.9.1 ..................... FAILURE [ 0.117 s]
[INFO] JUnit Platform Console 1.9.1 ....................... SKIPPED
[INFO] JUnit Platform Suite Commons 1.9.1 ................. SKIPPED
[INFO] JUnit Platform Suite Engine 1.9.1 .................. SKIPPED
[INFO] JUnit Platform Suite (Aggregator) 1.9.1 ............ SKIPPED
[INFO] JUnit Vintage Engine 5.10.2 ........................ SKIPPED
[INFO] JUnit Platform Console Standalone 1.9.1 ............ SKIPPED
[INFO] JUnit Platform Runner 1.9.1 ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.994 s
[INFO] Finished at: 2026-04-18T15:08:13Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project junit-platform-reporting: Compilation failure: Compilation failure:
[ERROR] /<<PKGBUILDDIR>>/junit-platform-reporting/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java:[239,102] method data in class org.opentest4j.reporting.events.core.CoreFactory cannot be applied to given types;
[ERROR] required: java.time.LocalDateTime
[ERROR] found: no arguments
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] /<<PKGBUILDDIR>>/junit-platform-reporting/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java:[240,37] cannot find symbol
[ERROR] symbol: method withTime(java.time.LocalDateTime)
[ERROR] location: variable data of type C
[ERROR] /<<PKGBUILDDIR>>/junit-platform-reporting/src/main/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListener.java:[241,66] invalid method reference
[ERROR] cannot find symbol
[ERROR] symbol: method addEntry(K,V)
[ERROR] location: bound of type variable C
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :junit-platform-reporting
dh_auto_build: error: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode package -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the pkg-java-maintainers
mailing list