langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess2.out
changeset 10 06bc494ca11e
equal deleted inserted replaced
0:fd16c54261b3 10:06bc494ca11e
       
     1 ProtectedMemberAccess2.java:38: pkg.SuperClass.pC has protected access in pkg.SuperClass
       
     2   pkg.SuperClass.pC  obj1;                      // illegal
       
     3                 ^
       
     4 ProtectedMemberAccess2.java:39: pkg.SuperClass.spC has protected access in pkg.SuperClass
       
     5   pkg.SuperClass.spC obj2;                      // illegal
       
     6                 ^
       
     7 ProtectedMemberAccess2.java:41: pkg.SuperClass.pI has protected access in pkg.SuperClass
       
     8   pkg.SuperClass.pI  obj3;                      // illegal
       
     9                 ^
       
    10 ProtectedMemberAccess2.java:42: pkg.SuperClass.spI has protected access in pkg.SuperClass
       
    11   pkg.SuperClass.spI obj4;                      // illegal
       
    12                 ^
       
    13 ProtectedMemberAccess2.java:50: pkg.SuperClass.pC has protected access in pkg.SuperClass
       
    14   class C1 extends pkg.SuperClass.pC {}         // illegal
       
    15                                  ^
       
    16 ProtectedMemberAccess2.java:51: pkg.SuperClass.spC has protected access in pkg.SuperClass
       
    17   class C2 extends pkg.SuperClass.spC {}        // illegal
       
    18                                  ^
       
    19 ProtectedMemberAccess2.java:53: pkg.SuperClass.pI has protected access in pkg.SuperClass
       
    20   interface I1 extends pkg.SuperClass.pI {}     // illegal
       
    21                                      ^
       
    22 ProtectedMemberAccess2.java:54: pkg.SuperClass.spI has protected access in pkg.SuperClass
       
    23   interface I2 extends pkg.SuperClass.spI {}    // illegal
       
    24                                      ^
       
    25 ProtectedMemberAccess2.java:23: pi has protected access in pkg.SuperClass
       
    26   int i = x.pi;                                 // illegal
       
    27            ^
       
    28 ProtectedMemberAccess2.java:24: spi has protected access in pkg.SuperClass
       
    29   int j = x.spi;                                // illegal
       
    30            ^
       
    31 ProtectedMemberAccess2.java:26: pi has protected access in pkg.SuperClass
       
    32   int n = sx.pi;                                // illegal
       
    33             ^
       
    34 ProtectedMemberAccess2.java:27: spi has protected access in pkg.SuperClass
       
    35   int m = sx.spi;                               // illegal
       
    36             ^
       
    37 ProtectedMemberAccess2.java:29: pi has protected access in pkg.SuperClass
       
    38   static int sn = sx.pi;                        // illegal
       
    39                     ^
       
    40 ProtectedMemberAccess2.java:30: spi has protected access in pkg.SuperClass
       
    41   static int sm = sx.spi;                       // illegal
       
    42                     ^
       
    43 ProtectedMemberAccess2.java:32: pm() has protected access in pkg.SuperClass
       
    44   int w = x.pm();                               // illegal
       
    45            ^
       
    46 ProtectedMemberAccess2.java:33: spm() has protected access in pkg.SuperClass
       
    47   int y = x.spm();                              // illegal
       
    48            ^
       
    49 ProtectedMemberAccess2.java:35: pm() has protected access in pkg.SuperClass
       
    50   int u = sx.pm();                              // illegal
       
    51             ^
       
    52 ProtectedMemberAccess2.java:36: spm() has protected access in pkg.SuperClass
       
    53   int v = sx.spm();                             // illegal
       
    54             ^
       
    55 ProtectedMemberAccess2.java:44: pkg.SuperClass.pC has protected access in pkg.SuperClass
       
    56   Object o1 = (pkg.SuperClass.pC) null;         // illegal
       
    57                              ^
       
    58 ProtectedMemberAccess2.java:45: pkg.SuperClass.spC has protected access in pkg.SuperClass
       
    59   Object o2 = (pkg.SuperClass.spC) null;        // illegal
       
    60                              ^
       
    61 ProtectedMemberAccess2.java:47: pkg.SuperClass.pI has protected access in pkg.SuperClass
       
    62   Object o3 = (pkg.SuperClass.pI) null;         // illegal
       
    63                              ^
       
    64 ProtectedMemberAccess2.java:48: pkg.SuperClass.spI has protected access in pkg.SuperClass
       
    65   Object o4 = (pkg.SuperClass.spI) null;        // illegal
       
    66                              ^
       
    67 ProtectedMemberAccess2.java:60: pi has protected access in pkg.SuperClass
       
    68     sx.pi  = 1;                                 // illegal
       
    69       ^
       
    70 ProtectedMemberAccess2.java:61: spi has protected access in pkg.SuperClass
       
    71     sx.spi = 2;                                 // illegal
       
    72       ^
       
    73 ProtectedMemberAccess2.java:63: pi has protected access in pkg.SuperClass
       
    74     lx.pi  = 1;                                 // illegal
       
    75       ^
       
    76 ProtectedMemberAccess2.java:64: spi has protected access in pkg.SuperClass
       
    77     lx.spi = 2;                                 // illegal
       
    78       ^
       
    79 ProtectedMemberAccess2.java:66: pi has protected access in pkg.SuperClass
       
    80     int n = sx.pi;                              // illegal
       
    81               ^
       
    82 ProtectedMemberAccess2.java:67: spi has protected access in pkg.SuperClass
       
    83     int m = sx.spi;                             // illegal
       
    84               ^
       
    85 ProtectedMemberAccess2.java:69: pi has protected access in pkg.SuperClass
       
    86     int k = lx.pi;                              // illegal
       
    87               ^
       
    88 ProtectedMemberAccess2.java:70: spi has protected access in pkg.SuperClass
       
    89     int l = lx.spi;                             // illegal
       
    90               ^
       
    91 ProtectedMemberAccess2.java:72: pm() has protected access in pkg.SuperClass
       
    92     int u = sx.pm();                            // illegal
       
    93               ^
       
    94 ProtectedMemberAccess2.java:73: spm() has protected access in pkg.SuperClass
       
    95     int v = sx.spm();                           // illegal
       
    96               ^
       
    97 ProtectedMemberAccess2.java:75: pm() has protected access in pkg.SuperClass
       
    98     int w = lx.pm();                            // illegal
       
    99               ^
       
   100 ProtectedMemberAccess2.java:76: spm() has protected access in pkg.SuperClass
       
   101     int z = lx.spm();                           // illegal
       
   102               ^
       
   103 ProtectedMemberAccess2.java:78: pkg.SuperClass.pC has protected access in pkg.SuperClass
       
   104     pkg.SuperClass.pC  obj1;                    // illegal
       
   105                   ^
       
   106 ProtectedMemberAccess2.java:79: pkg.SuperClass.spC has protected access in pkg.SuperClass
       
   107     pkg.SuperClass.spC obj2;                    // illegal
       
   108                   ^
       
   109 ProtectedMemberAccess2.java:81: pkg.SuperClass.pI has protected access in pkg.SuperClass
       
   110     pkg.SuperClass.pI  obj3;                    // illegal
       
   111                   ^
       
   112 ProtectedMemberAccess2.java:82: pkg.SuperClass.spI has protected access in pkg.SuperClass
       
   113     pkg.SuperClass.spI obj4;                    // illegal
       
   114                   ^
       
   115 ProtectedMemberAccess2.java:84: pkg.SuperClass.pC has protected access in pkg.SuperClass
       
   116     Object o1 = (pkg.SuperClass.pC) null;       // illegal
       
   117                                ^
       
   118 ProtectedMemberAccess2.java:85: pkg.SuperClass.spC has protected access in pkg.SuperClass
       
   119     Object o2 = (pkg.SuperClass.spC) null;      // illegal
       
   120                                ^
       
   121 ProtectedMemberAccess2.java:87: pkg.SuperClass.pI has protected access in pkg.SuperClass
       
   122     Object o3 = (pkg.SuperClass.pI) null;       // illegal
       
   123                                ^
       
   124 ProtectedMemberAccess2.java:88: pkg.SuperClass.spI has protected access in pkg.SuperClass
       
   125     Object o4 = (pkg.SuperClass.spI) null;      // illegal
       
   126                                ^
       
   127 ProtectedMemberAccess2.java:91: pkg.SuperClass.spC has protected access in pkg.SuperClass
       
   128     class C2 extends pkg.SuperClass.spC {}      // illegal
       
   129                                    ^
       
   130 ProtectedMemberAccess2.java:102: pi has protected access in pkg.SuperClass
       
   131     x.pi  = 1;                                  // illegal
       
   132      ^
       
   133 ProtectedMemberAccess2.java:103: spi has protected access in pkg.SuperClass
       
   134     x.spi = 2;                                  // illegal
       
   135      ^
       
   136 ProtectedMemberAccess2.java:105: pi has protected access in pkg.SuperClass
       
   137     sx.pi  = 1;                                 // illegal
       
   138       ^
       
   139 ProtectedMemberAccess2.java:106: spi has protected access in pkg.SuperClass
       
   140     sx.spi = 2;                                 // illegal
       
   141       ^
       
   142 ProtectedMemberAccess2.java:108: pi has protected access in pkg.SuperClass
       
   143     lx.pi  = 1;                                 // illegal
       
   144       ^
       
   145 ProtectedMemberAccess2.java:109: spi has protected access in pkg.SuperClass
       
   146     lx.spi = 2;                                 // illegal
       
   147       ^
       
   148 ProtectedMemberAccess2.java:111: pm() has protected access in pkg.SuperClass
       
   149     int t = x.pm();                             // illegal
       
   150              ^
       
   151 ProtectedMemberAccess2.java:112: spm() has protected access in pkg.SuperClass
       
   152     int y = x.spm();                            // illegal
       
   153              ^
       
   154 ProtectedMemberAccess2.java:114: pm() has protected access in pkg.SuperClass
       
   155     int u = sx.pm();                            // illegal
       
   156               ^
       
   157 ProtectedMemberAccess2.java:115: spm() has protected access in pkg.SuperClass
       
   158     int v = sx.spm();                           // illegal
       
   159               ^
       
   160 ProtectedMemberAccess2.java:117: pm() has protected access in pkg.SuperClass
       
   161     int w = lx.pm();                            // illegal
       
   162               ^
       
   163 ProtectedMemberAccess2.java:118: spm() has protected access in pkg.SuperClass
       
   164     int z = lx.spm();                           // illegal
       
   165               ^
       
   166 ProtectedMemberAccess2.java:120: pi has protected access in pkg.SuperClass
       
   167     int i = x.pi;                               // illegal
       
   168              ^
       
   169 ProtectedMemberAccess2.java:121: spi has protected access in pkg.SuperClass
       
   170     int j = x.spi;                              // illegal
       
   171              ^
       
   172 ProtectedMemberAccess2.java:123: pi has protected access in pkg.SuperClass
       
   173     int n = sx.pi;                              // illegal
       
   174               ^
       
   175 ProtectedMemberAccess2.java:124: spi has protected access in pkg.SuperClass
       
   176     int m = sx.spi;                             // illegal
       
   177               ^
       
   178 ProtectedMemberAccess2.java:126: pi has protected access in pkg.SuperClass
       
   179     int k = lx.pi;                              // illegal
       
   180               ^
       
   181 ProtectedMemberAccess2.java:127: spi has protected access in pkg.SuperClass
       
   182     int l = lx.spi;                             // illegal
       
   183               ^
       
   184 ProtectedMemberAccess2.java:129: pkg.SuperClass.pC has protected access in pkg.SuperClass
       
   185     pkg.SuperClass.pC  obj1;                    // illegal
       
   186                   ^
       
   187 ProtectedMemberAccess2.java:130: pkg.SuperClass.spC has protected access in pkg.SuperClass
       
   188     pkg.SuperClass.spC obj2;                    // illegal
       
   189                   ^
       
   190 ProtectedMemberAccess2.java:132: pkg.SuperClass.pI has protected access in pkg.SuperClass
       
   191     pkg.SuperClass.pI  obj3;                    // illegal
       
   192                   ^
       
   193 ProtectedMemberAccess2.java:133: pkg.SuperClass.spI has protected access in pkg.SuperClass
       
   194     pkg.SuperClass.spI obj4;                    // illegal
       
   195                   ^
       
   196 ProtectedMemberAccess2.java:135: pkg.SuperClass.pC has protected access in pkg.SuperClass
       
   197     Object o1 = (pkg.SuperClass.pC) null;       // illegal
       
   198                                ^
       
   199 ProtectedMemberAccess2.java:136: pkg.SuperClass.spC has protected access in pkg.SuperClass
       
   200     Object o2 = (pkg.SuperClass.spC) null;      // illegal
       
   201                                ^
       
   202 ProtectedMemberAccess2.java:138: pkg.SuperClass.pI has protected access in pkg.SuperClass
       
   203     Object o3 = (pkg.SuperClass.pI) null;       // illegal
       
   204                                ^
       
   205 ProtectedMemberAccess2.java:139: pkg.SuperClass.spI has protected access in pkg.SuperClass
       
   206     Object o4 = (pkg.SuperClass.spI) null;      // illegal
       
   207                                ^
       
   208 ProtectedMemberAccess2.java:141: pkg.SuperClass.pC has protected access in pkg.SuperClass
       
   209     class C1 extends pkg.SuperClass.pC {}       // illegal
       
   210                                    ^
       
   211 ProtectedMemberAccess2.java:142: pkg.SuperClass.spC has protected access in pkg.SuperClass
       
   212     class C2 extends pkg.SuperClass.spC {}      // illegal
       
   213                                    ^
       
   214 71 errors