nescc: FTBFS with OpenJDK 21 due to unsupported javac source/target level 7

Bug #2052574 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nescc (Debian)
Fix Released
Unknown
nescc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

nescc fails to build with OpenJDK 21 because it invokes javac with
the source/target options set to 7. Since OpenJDK 20 the minimum version
supported is 8.

  Making all in doc
  make[2]: Entering directory '/<<PKGBUILDDIR>>/doc'
  make[2]: Nothing to be done for 'all'.
  make[2]: Leaving directory '/<<PKGBUILDDIR>>/doc'
  Making all in tools
  make[2]: Entering directory '/<<PKGBUILDDIR>>/tools'
  Making all in java
  make[3]: Entering directory '/<<PKGBUILDDIR>>/tools/java'
  Making all in net
  make[4]: Entering directory '/<<PKGBUILDDIR>>/tools/java/net'
  Making all in tinyos
  make[5]: Entering directory '/<<PKGBUILDDIR>>/tools/java/net/tinyos'
  Making all in nesc
  make[6]: Entering directory '/<<PKGBUILDDIR>>/tools/java/net/tinyos/nesc'
  Making all in wiring
  make[7]: Entering directory '/<<PKGBUILDDIR>>/tools/java/net/tinyos/nesc/wiring'
  CLASSPATH=`cygpath -w ../../../.. 2>/dev/null || echo ../../../..` javac -source 1.7 -target 1.7 WiringCheck.java
  warning: [options] bootstrap class path not set in conjunction with -source 7
  error: Source option 7 is no longer supported. Use 8 or later.
  error: Target option 7 is no longer supported. Use 8 or later.
  make[7]: *** [Makefile:469: WiringCheck.class] Error 2

Related branches

Revision history for this message
Vladimir Petko (vpa1977) wrote :
Changed in nescc (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nescc - 1.3.5-1.1ubuntu1

---------------
nescc (1.3.5-1.1ubuntu1) noble; urgency=medium

  * d/p/compile-for-old-java.patch, d/rules: use JAVA_COMPAT_LEVEL
    environment variable provided by java-common to adjust -source/-target
    level to the minimum required by the default Java (LP: #2052574).

 -- Vladimir Petko <email address hidden> Wed, 07 Feb 2024 14:35:09 +1300

Changed in nescc (Ubuntu):
status: New → Fix Released
Changed in nescc (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.