#1065522 android-platform-external-nist-sip: FTBFS with default Java 21

#1065522#5
Date:
2024-03-06 01:03:41 UTC
From:
To:
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

#1065522#10
Date:
2024-03-08 06:09:08 UTC
From:
To:
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.