10a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray/*
20a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray * Copyright (C) 2016 The Android Open Source Project
30a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray *
40a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray * Licensed under the Apache License, Version 2.0 (the "License");
50a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray * you may not use this file except in compliance with the License.
60a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray * You may obtain a copy of the License at
70a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray *
80a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray *      http://www.apache.org/licenses/LICENSE-2.0
90a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray *
100a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray * Unless required by applicable law or agreed to in writing, software
110a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray * distributed under the License is distributed on an "AS IS" BASIS,
120a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
130a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray * See the License for the specific language governing permissions and
140a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray * limitations under the License.
150a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray */
160a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray
170a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffraypublic class LoadedByAppClassLoader {
180a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray  public static void letMeInlineYou() {
190a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray    // We used to pass the wrong class loader when trying to inline 'Main.foo'.
200a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray    Main.foo(null);
210a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray  }
220a210d9b108c87c0e7c1d430a92ce6fc89790c95Nicolas Geoffray}
23