Change runtime behavior related to hiddenapi.
When resolving a method, if the found method is not accessible, check if
there are methods defined in interfaces which are.
Bug: 178680596
Bug: 122551864
Test: 817-hiddenapi
Change-Id: If7631b30b2eb8eb70d3d0fa1522744fbbd1f66a1
diff --git a/test/817-hiddenapi/src/NotInAbstractInterface.java b/test/817-hiddenapi/src/NotInAbstractInterface.java
new file mode 100644
index 0000000..1400e21
--- /dev/null
+++ b/test/817-hiddenapi/src/NotInAbstractInterface.java
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2021 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+public interface NotInAbstractInterface {
+ // This method will be part of the public SDK.
+ int methodPublicSdkNotInAbstractParent();
+}