summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2023-11-09 09:37:44 +0000
committer Jihoon Kang <jihoonkang@google.com> 2023-11-09 09:37:44 +0000
commitec4e94e1fd2dae8e8bb0a234fe32857595595dd1 (patch)
tree826b4dafe7ab59b671520ec9777acd3c7b0ac9ac /api/api.go
parentcdd8d360130022ecdd2e41e234428de8e80996cd (diff)
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: I212bd9aa895088fa9de33c7e3521453dea30c350
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions