From 9c5c9b0a943548a3181480725d23edd1ea5bd4fa Mon Sep 17 00:00:00 2001 From: Jihoon Kang Date: Thu, 9 Nov 2023 09:40:27 +0000 Subject: [PATCH] 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 --- framework/api/module-lib-current.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/api/module-lib-current.txt b/framework/api/module-lib-current.txt index 4d550678f1..3694d16fcc 100644 --- a/framework/api/module-lib-current.txt +++ b/framework/api/module-lib-current.txt @@ -233,6 +233,7 @@ package android.net { public final class VpnTransportInfo implements android.os.Parcelable android.net.TransportInfo { ctor @Deprecated public VpnTransportInfo(int, @Nullable String); + method public long getApplicableRedactions(); method @Nullable public String getSessionId(); method @NonNull public android.net.VpnTransportInfo makeCopy(long); }