Public bug reported:

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

** Affects: javaparser (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2065298

Title:
  Package javaparser FTBFS with openjdk-21

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/javaparser/+bug/2065298/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to