android_packages_modules_Co.../framework
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Paul Duffin d34a450b4c Add overriding method of a default method to signature files
Currently, the signature file elides overrides of a default method,
as they are not essential for the compilation of the stubs.
However, in some scenarios, the overrides of a default method may be
essential for the compilation of the reverse dependency of the stubs.
In the scenario seen below:
```
// API
interface ApiInterface {
    public default void bar() {};
}
class ApiClass implements AnotherParentInterface{
    public void bar() {}
}

// App depending on the API
interface AppInterface {
    public void bar();
}
public class AppClass extends ApiClass implements AppInterface {
}
```
Removal of `ApiClass.bar()` will lead to not overriding an abstract method
`AppInterface.bar()` compilation error in `AppClass`.
Therefore, this change adds the overrides of a default method to the
signature files.

Ignore-AOSP-First: The file change is caused by a metalava update that is already present in AOSP. However, because this file is not used in AOSP it does not have this change. Making this change in AOSP first would break ump as the change would merge down into ump without the matching Metalava change. So, the change needs to be made in ump first along with the Metalava change. After that it can be CP'd to AOSP in order to keep them consistent if necessary.

Test: checkapi
Bug: 299366704
Change-Id: I2364aea70c692e577e6057e13cd761a472b7aea4
2023-11-23 22:58:12 +00:00
..
aidl-export/android/net Add LocalNetworkInfo and send callbacks when it changes 2023-11-07 17:29:38 +09:00
api Merge "Add overriding method of a default method to signature files" into main 2023-11-09 17:00:53 +00:00
jni switch to classic bpf macros 2023-04-19 00:06:15 +00:00
proto [MS54.3] Move NetworkStats to updatable sources 2022-02-28 03:24:19 +00:00
src/android/net Add more powerful CTS for allowedUids 2023-11-20 12:16:39 +09:00
udc-extended-api Add overriding method of a default method to signature files 2023-11-23 22:58:12 +00:00
Android.bp Merge "Remove --show-annotation FlaggedApi from flagged-apis-droidstubs" into main am: d3d41ac7a4 2023-11-22 14:35:59 +00:00
jarjar-excludes.txt Add LocalNetworkInfo and send callbacks when it changes 2023-11-07 17:29:38 +09:00
lint-baseline.xml Baseline NewApi issues 2023-03-09 14:07:52 -08:00