From 44fd0e5e9cc384783398b1f3ad85937aa856651c Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 16 Mar 2016 15:16:06 +0000 Subject: Fix inliner crash related to type propagation. - Do not agressively try to resolve a return type. - Deal with unresolved return type. bug:25492619 Change-Id: Idc9c96a0b376fe5ee86b411c02ce7078c7f48c84 --- test/585-inline-unresolved/src/Main.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/585-inline-unresolved/src/Main.java (limited to 'test/585-inline-unresolved/src/Main.java') diff --git a/test/585-inline-unresolved/src/Main.java b/test/585-inline-unresolved/src/Main.java new file mode 100644 index 0000000000..67ad4d2263 --- /dev/null +++ b/test/585-inline-unresolved/src/Main.java @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2016 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 class Main { + public static void main(String[] args) throws Exception { + Class c = Class.forName("TestCase"); + c.getMethod("topLevel").invoke(null); + } +} -- cgit v1.2.3-59-g8ed1b