1; Copyright (C) 2017 The Android Open Source Project
2;
3; Licensed under the Apache License, Version 2.0 (the "License");
4; you may not use this file except in compliance with the License.
5; You may obtain a copy of the License at
6;
7;      http://www.apache.org/licenses/LICENSE-2.0
8;
9; Unless required by applicable law or agreed to in writing, software
10; distributed under the License is distributed on an "AS IS" BASIS,
11; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12; See the License for the specific language governing permissions and
13; limitations under the License.
14
15.class                   public SubClassUsingInaccessibleField
16.super                   other/PublicClass
17
18.method                  public <init>()V
19   .limit stack          1
20   .limit locals         1
21   aload_0
22   invokespecial         other/PublicClass/<init>()V
23   return
24.end method
25
26; Regression test for compiler DCHECK() failure (bogus check) when referencing
27; a package-private field from an indirectly inherited package-private class,
28; using this very class as the declaring class in the FieldId, bug: 27684368 .
29.method                  public test()I
30   .limit stack          1
31   .limit locals         1
32   aload_0
33   getfield              SubClassUsingInaccessibleField/otherProtectedClassPackageIntInstanceField I
34   ireturn
35.end method
36
37