#1145455 libpf4j-update-java: FTBFS: return type org.pf4j.PluginDescriptor is not compatible with org.pf4j.DefaultPluginDescriptor

#1145455#5
Date:
2026-08-25 10:15:28 UTC
From:
To:
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/202608/

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:libpf4j-update-java, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[29,29] setPluginDescription(java.lang.String) in org.pf4j.TestPluginDescriptor cannot override setPluginDescription(java.lang.String) in org.pf4j.DefaultPluginDescriptor
  return type org.pf4j.PluginDescriptor is not compatible with org.pf4j.DefaultPluginDescriptor
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[28,5] method does not override or implement a method from a supertype
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[34,29] setPluginClass(java.lang.String) in org.pf4j.TestPluginDescriptor cannot override setPluginClass(java.lang.String) in org.pf4j.DefaultPluginDescriptor
  return type org.pf4j.PluginDescriptor is not compatible with org.pf4j.DefaultPluginDescriptor
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[33,5] method does not override or implement a method from a supertype
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[44,29] setProvider(java.lang.String) in org.pf4j.TestPluginDescriptor cannot override setProvider(java.lang.String) in org.pf4j.DefaultPluginDescriptor
  return type org.pf4j.PluginDescriptor is not compatible with org.pf4j.DefaultPluginDescriptor
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[43,5] method does not override or implement a method from a supertype
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[49,29] setRequires(java.lang.String) in org.pf4j.TestPluginDescriptor cannot override setRequires(java.lang.String) in org.pf4j.DefaultPluginDescriptor
  return type org.pf4j.PluginDescriptor is not compatible with org.pf4j.DefaultPluginDescriptor
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[48,5] method does not override or implement a method from a supertype
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[54,29] setDependencies(java.lang.String) in org.pf4j.TestPluginDescriptor cannot override setDependencies(java.lang.String) in org.pf4j.DefaultPluginDescriptor
  return type org.pf4j.PluginDescriptor is not compatible with org.pf4j.DefaultPluginDescriptor
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[53,5] method does not override or implement a method from a supertype
[INFO] 10 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.200 s
[INFO] Finished at: 2026-08-25T09:35:26Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:testCompile (default-testCompile) on project pf4j-update: Compilation failure: Compilation failure:
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[29,29] setPluginDescription(java.lang.String) in org.pf4j.TestPluginDescriptor cannot override setPluginDescription(java.lang.String) in org.pf4j.DefaultPluginDescriptor
[ERROR]   return type org.pf4j.PluginDescriptor is not compatible with org.pf4j.DefaultPluginDescriptor
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[28,5] method does not override or implement a method from a supertype
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[34,29] setPluginClass(java.lang.String) in org.pf4j.TestPluginDescriptor cannot override setPluginClass(java.lang.String) in org.pf4j.DefaultPluginDescriptor
[ERROR]   return type org.pf4j.PluginDescriptor is not compatible with org.pf4j.DefaultPluginDescriptor
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[33,5] method does not override or implement a method from a supertype
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[44,29] setProvider(java.lang.String) in org.pf4j.TestPluginDescriptor cannot override setProvider(java.lang.String) in org.pf4j.DefaultPluginDescriptor
[ERROR]   return type org.pf4j.PluginDescriptor is not compatible with org.pf4j.DefaultPluginDescriptor
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[43,5] method does not override or implement a method from a supertype
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[49,29] setRequires(java.lang.String) in org.pf4j.TestPluginDescriptor cannot override setRequires(java.lang.String) in org.pf4j.DefaultPluginDescriptor
[ERROR]   return type org.pf4j.PluginDescriptor is not compatible with org.pf4j.DefaultPluginDescriptor
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[48,5] method does not override or implement a method from a supertype
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[54,29] setDependencies(java.lang.String) in org.pf4j.TestPluginDescriptor cannot override setDependencies(java.lang.String) in org.pf4j.DefaultPluginDescriptor
[ERROR]   return type org.pf4j.PluginDescriptor is not compatible with org.pf4j.DefaultPluginDescriptor
[ERROR] /<<PKGBUILDDIR>>/src/test/java/org/pf4j/TestPluginDescriptor.java:[53,5] method does not override or implement a method from a supertype
[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
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=/<<BUILDDIR>>/libpf4j-update-java-2.3.0\+dfsg -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<BUILDDIR>>/libpf4j-update-java-2.3.0\+dfsg/debian -Dmaven.repo.local=/<<BUILDDIR>>/libpf4j-update-java-2.3.0\+dfsg/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
--------------------------------------------------------------------------------