From afb664701734c6edbea07431382ee33f1677d42b Mon Sep 17 00:00:00 2001 From: Alex Light Date: Tue, 1 Aug 2017 09:54:49 -0700 Subject: 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 --- test/075-verification-error/src2/BadInterface.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/075-verification-error/src2/BadInterface.java (limited to 'test/075-verification-error/src2') 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 { } + -- cgit v1.2.3-59-g8ed1b