Package javaparser FTBFS with openjdk-21

Bug #2065298 reported by Pushkar Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
javaparser (Ubuntu)
Fix Released
Undecided
Graham Inggs

Bug Description

With default-jre currently pointing to openjdk-21, version 3.25.10+dfsg-1 fails to build [1] with this error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project javaparser-core: Compilation failure: Compilation failure:
[ERROR] /<<PKGBUILDDIR>>/javaparser-core/src/main/java/com/github/javaparser/ast/NodeList.java:[243,24] getLast() in com.github.javaparser.ast.NodeList cannot implement getLast() in java.util.List
[ERROR] return type java.util.Optional<N> is not compatible with N
[ERROR] /<<PKGBUILDDIR>>/javaparser-core/src/main/java/com/github/javaparser/ast/NodeList.java:[233,24] getFirst() in com.github.javaparser.ast.NodeList cannot implement getFirst() in java.util.List
[ERROR] return type java.util.Optional<N> is not compatible with N
[ERROR] /<<PKGBUILDDIR>>/javaparser-core/src/main/java/com/github/javaparser/ast/NodeList.java:[197,24] addLast(N) in com.github.javaparser.ast.NodeList cannot implement addLast(E) in java.util.List
[ERROR] return type com.github.javaparser.ast.NodeList<N> is not compatible with void
[ERROR] /<<PKGBUILDDIR>>/javaparser-core/src/main/java/com/github/javaparser/ast/NodeList.java:[189,24] addFirst(N) in com.github.javaparser.ast.NodeList cannot implement addFirst(E) in java.util.List
[ERROR] return type com.github.javaparser.ast.NodeList<N> is not compatible with void
[ERROR] -> [Help 1]
[ERROR]

[1] https://launchpadlibrarian.net/728189262/buildlog_ubuntu-oracular-amd64.javaparser_3.25.10+dfsg-1_BUILDING.txt.gz

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

Might help to use `maven.compiler.release=17` for now.

tags: added: update-excuse
Graham Inggs (ginggs)
Changed in javaparser (Ubuntu):
assignee: nobody → Graham Inggs (ginggs)
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package javaparser - 3.25.10+dfsg-1ubuntu1

---------------
javaparser (3.25.10+dfsg-1ubuntu1) oracular; urgency=medium

  * d/maven.properties: Add file with maven.compiler.release=17
    to support compilation with openjdk-21 (LP: #2065298)

 -- Pushkar Kulkarni <email address hidden> Thu, 09 May 2024 23:31:04 +0530

Changed in javaparser (Ubuntu):
status: Fix Committed → 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.