Bug#981854: apache-log4j1.2: FTBFS with OpenJDK 17 due to rmic removal

Emmanuel Bourg ebourg at apache.org
Thu Feb 4 16:05:31 GMT 2021


Source: apache-log4j1.2
Severity: important
Tags: ftbfs sid bookworm
User: debian-java at lists.debian.org
Usertags: default-java17

apache-log4j1.2 fails to build with OpenJDK 17 due to the removal of rmic:

  build.examples:
      [javac] Using javac -source 1.4 is no longer supported, switching to 7
      [javac] Using javac -target 1.4 is no longer supported, switching to 7
      [javac] Compiling 20 source files to /<<PKGBUILDDIR>>/dist/classes
      [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
      [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
      [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
      [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
      [javac] /<<PKGBUILDDIR>>/examples/NumberCruncherServer.java:108: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
      [javac]     factors.addElement(new Integer(i));
      [javac]                        ^
      [javac] /<<PKGBUILDDIR>>/examples/NumberCruncherServer.java:120: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
      [javac]       factors.addElement(new Integer(n));
      [javac]                          ^
      [javac] Note: /<<PKGBUILDDIR>>/examples/NumberCruncherServer.java uses unchecked or unsafe operations.
      [javac] Note: Recompile with -Xlint:unchecked for details.
      [javac] 6 warnings
       [rmic] RMI Compiling 1 class to /<<PKGBUILDDIR>>/dist/classes
  
  BUILD FAILED
  /<<PKGBUILDDIR>>/build.xml:278: rmic does not exist under Java 15 and higher, use rmic of an older JDK and explicitly set the executable attribute



More information about the pkg-java-maintainers mailing list