android_packages_modules_Co.../framework/api
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jihoon Kang 9c5c9b0a94 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.

Test: checkapi
Bug: 299366704
Change-Id: Ie11dbeafc39efec06f605e306c92155e834a6685
2023-11-09 09:40:27 +00:00
..
current.txt Add additional overriding methods to signature files 2023-10-12 19:21:07 +01:00
lint-baseline.txt Split out the connectivity API surface 2021-02-26 19:23:25 +09:00
module-lib-current.txt Add overriding method of a default method to signature files 2023-11-09 09:40:27 +00:00
module-lib-removed.txt Add additional overriding methods to signature files 2023-10-12 19:21:07 +01:00
removed.txt Add additional overriding methods to signature files 2023-10-12 19:21:07 +01:00
system-current.txt Add additional overriding methods to signature files 2023-10-12 19:21:07 +01:00
system-lint-baseline.txt Split out the connectivity API surface 2021-02-26 19:23:25 +09:00
system-removed.txt Add additional overriding methods to signature files 2023-10-12 19:21:07 +01:00