- Submitter:
- Vladimir Petko
- Date:
- 2025-08-11 15:23:47 UTC
- Severity:
- normal
- Tags:
Dear Maintainers,
The package android-platform-external-nist-sip ftbfs with default Java 21.
The relevant part of the build log:
---------------
./java/gov/nist/javax/sip/header/ims/PMediaAuthorizationList.java:41: error: removeLast() in SIPHeaderList cannot implement removeLast() in List
public class PMediaAuthorizationList extends SIPHeaderList<PMediaAuthorization> {
^
return type void is not compatible with PMediaAuthorization
where E is a type-variable:
E extends Object declared in interface List
--------------
see [1]
[1] https://launchpadlibrarian.net/715414670/buildlog_ubuntu-noble-amd64.android-platform-external-nist-sip_9.0.0+r35-1.1_BUILDING.txt.gz
Dear Maintainer,
The package fails to build with default Java 21 due to java.util.List API
changes.
In Ubuntu, the attached patch was applied to achieve the following:
* d/p/java21-update-list-api.patch: add patch to workaround Java 21
java.util.List API changes (LP: #2056086).
Thanks for considering the patch.