summaryrefslogtreecommitdiff
path: root/test/075-verification-error/src2
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2017-08-01 09:54:49 -0700
committer Alex Light <allight@google.com> 2017-08-02 14:58:10 -0700
commitafb664701734c6edbea07431382ee33f1677d42b (patch)
treebd67954a08efb59e7bee75dfe46d1230abe4443b /test/075-verification-error/src2
parent7f14c2ec37c70010d99cab6806d85018df56c555 (diff)
Fix verifier checks on interface methods.
We were disallowing interfaces in the IsInheritedMethod even though the function can be called with them. This could cause some failing DCHECKS if the verifier cannot find methods in some situations. We also fixed a small issue in the verifier where we allowed non-public java.lang.Object methods to be considered valid for interface dispatch. Test: ./test.py --host -j50 Test: Compile an app with bad bytecodes (See bug) Bug: 64158483 Bug: 64274113 Change-Id: Ia79f25be0001efc4069a411a0b34476bd0871803
Diffstat (limited to 'test/075-verification-error/src2')
-rw-r--r--test/075-verification-error/src2/BadInterface.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/075-verification-error/src2/BadInterface.java b/test/075-verification-error/src2/BadInterface.java
new file mode 100644
index 0000000000..5d939cb264
--- /dev/null
+++ b/test/075-verification-error/src2/BadInterface.java
@@ -0,0 +1,17 @@
+/*
+ * Copyright (C) 2017 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 BadInterface { }
+