1c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray/*
2c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray * Copyright (C) 2015 The Android Open Source Project
3c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray *
4c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray * Licensed under the Apache License, Version 2.0 (the "License");
5c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray * you may not use this file except in compliance with the License.
6c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray * You may obtain a copy of the License at
7c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray *
8c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray *      http://www.apache.org/licenses/LICENSE-2.0
9c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray *
10c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray * Unless required by applicable law or agreed to in writing, software
11c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray * distributed under the License is distributed on an "AS IS" BASIS,
12c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray * See the License for the specific language governing permissions and
14c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray * limitations under the License.
15c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray */
16c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray
17c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffraypackage p1;
18c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray
19c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffraypublic class InPackage {
20c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray  public static int $inline$method() {
21c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray    // Call must be through a public subclass of the holder
22c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray    // of the protected method, so that the Main class also has
23c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray    // access to it.
24c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray    return PublicB.method();
25c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray  }
26c48c7e6a540a0e23ff26ce12e2fe94adefd8ed48Nicolas Geoffray}
27