Thu, 03 Feb 2011 09:36:28 +0000
5017953: spurious cascaded diagnostics when name not found
Summary: when an operator is applied to one or more erroneous operands, spurious diagnostics are generated
Reviewed-by: jjg
aoqi@0 | 1 | ProtectedMemberAccess3.java:40: pkg.SuperClass.pC has protected access in pkg.SuperClass |
aoqi@0 | 2 | pkg.SuperClass.pC obj1; // illegal |
aoqi@0 | 3 | ^ |
aoqi@0 | 4 | ProtectedMemberAccess3.java:41: pkg.SuperClass.spC has protected access in pkg.SuperClass |
aoqi@0 | 5 | pkg.SuperClass.spC obj2; // illegal |
aoqi@0 | 6 | ^ |
aoqi@0 | 7 | ProtectedMemberAccess3.java:43: pkg.SuperClass.pI has protected access in pkg.SuperClass |
aoqi@0 | 8 | pkg.SuperClass.pI obj3; // illegal |
aoqi@0 | 9 | ^ |
aoqi@0 | 10 | ProtectedMemberAccess3.java:44: pkg.SuperClass.spI has protected access in pkg.SuperClass |
aoqi@0 | 11 | pkg.SuperClass.spI obj4; // illegal |
aoqi@0 | 12 | ^ |
aoqi@0 | 13 | ProtectedMemberAccess3.java:52: pkg.SuperClass.pC has protected access in pkg.SuperClass |
aoqi@0 | 14 | class C1 extends pkg.SuperClass.pC {} // illegal |
aoqi@0 | 15 | ^ |
aoqi@0 | 16 | ProtectedMemberAccess3.java:53: pkg.SuperClass.spC has protected access in pkg.SuperClass |
aoqi@0 | 17 | class C2 extends pkg.SuperClass.spC {} // illegal |
aoqi@0 | 18 | ^ |
aoqi@0 | 19 | ProtectedMemberAccess3.java:25: pi has protected access in pkg.SuperClass |
aoqi@0 | 20 | int i = x.pi; // illegal |
aoqi@0 | 21 | ^ |
aoqi@0 | 22 | ProtectedMemberAccess3.java:26: spi has protected access in pkg.SuperClass |
aoqi@0 | 23 | int j = x.spi; // illegal |
aoqi@0 | 24 | ^ |
aoqi@0 | 25 | ProtectedMemberAccess3.java:28: pi has protected access in pkg.SuperClass |
aoqi@0 | 26 | int n = sx.pi; // illegal |
aoqi@0 | 27 | ^ |
aoqi@0 | 28 | ProtectedMemberAccess3.java:29: spi has protected access in pkg.SuperClass |
aoqi@0 | 29 | int m = sx.spi; // illegal |
aoqi@0 | 30 | ^ |
aoqi@0 | 31 | ProtectedMemberAccess3.java:34: pm() has protected access in pkg.SuperClass |
aoqi@0 | 32 | int w = x.pm(); // illegal |
aoqi@0 | 33 | ^ |
aoqi@0 | 34 | ProtectedMemberAccess3.java:35: spm() has protected access in pkg.SuperClass |
aoqi@0 | 35 | int y = x.spm(); // illegal |
aoqi@0 | 36 | ^ |
aoqi@0 | 37 | ProtectedMemberAccess3.java:37: pm() has protected access in pkg.SuperClass |
aoqi@0 | 38 | int u = sx.pm(); // illegal |
aoqi@0 | 39 | ^ |
aoqi@0 | 40 | ProtectedMemberAccess3.java:38: spm() has protected access in pkg.SuperClass |
aoqi@0 | 41 | int v = sx.spm(); // illegal |
aoqi@0 | 42 | ^ |
aoqi@0 | 43 | ProtectedMemberAccess3.java:46: pkg.SuperClass.pC has protected access in pkg.SuperClass |
aoqi@0 | 44 | Object o1 = (pkg.SuperClass.pC) null; // illegal |
aoqi@0 | 45 | ^ |
aoqi@0 | 46 | ProtectedMemberAccess3.java:47: pkg.SuperClass.spC has protected access in pkg.SuperClass |
aoqi@0 | 47 | Object o2 = (pkg.SuperClass.spC) null; // illegal |
aoqi@0 | 48 | ^ |
aoqi@0 | 49 | ProtectedMemberAccess3.java:49: pkg.SuperClass.pI has protected access in pkg.SuperClass |
aoqi@0 | 50 | Object o3 = (pkg.SuperClass.pI) null; // illegal |
aoqi@0 | 51 | ^ |
aoqi@0 | 52 | ProtectedMemberAccess3.java:50: pkg.SuperClass.spI has protected access in pkg.SuperClass |
aoqi@0 | 53 | Object o4 = (pkg.SuperClass.spI) null; // illegal |
aoqi@0 | 54 | ^ |
aoqi@0 | 55 | ProtectedMemberAccess3.java:65: pi has protected access in pkg.SuperClass |
aoqi@0 | 56 | x.pi = 1; // illegal |
aoqi@0 | 57 | ^ |
aoqi@0 | 58 | ProtectedMemberAccess3.java:66: spi has protected access in pkg.SuperClass |
aoqi@0 | 59 | x.spi = 2; // illegal |
aoqi@0 | 60 | ^ |
aoqi@0 | 61 | ProtectedMemberAccess3.java:68: pi has protected access in pkg.SuperClass |
aoqi@0 | 62 | sx.pi = 1; // illegal |
aoqi@0 | 63 | ^ |
aoqi@0 | 64 | ProtectedMemberAccess3.java:69: spi has protected access in pkg.SuperClass |
aoqi@0 | 65 | sx.spi = 2; // illegal |
aoqi@0 | 66 | ^ |
aoqi@0 | 67 | ProtectedMemberAccess3.java:71: pi has protected access in pkg.SuperClass |
aoqi@0 | 68 | lx.pi = 1; // illegal |
aoqi@0 | 69 | ^ |
aoqi@0 | 70 | ProtectedMemberAccess3.java:72: spi has protected access in pkg.SuperClass |
aoqi@0 | 71 | lx.spi = 2; // illegal |
aoqi@0 | 72 | ^ |
aoqi@0 | 73 | ProtectedMemberAccess3.java:74: pm() has protected access in pkg.SuperClass |
aoqi@0 | 74 | int t = x.pm(); // illegal |
aoqi@0 | 75 | ^ |
aoqi@0 | 76 | ProtectedMemberAccess3.java:75: spm() has protected access in pkg.SuperClass |
aoqi@0 | 77 | int y = x.spm(); // illegal |
aoqi@0 | 78 | ^ |
aoqi@0 | 79 | ProtectedMemberAccess3.java:77: pm() has protected access in pkg.SuperClass |
aoqi@0 | 80 | int u = sx.pm(); // illegal |
aoqi@0 | 81 | ^ |
aoqi@0 | 82 | ProtectedMemberAccess3.java:78: spm() has protected access in pkg.SuperClass |
aoqi@0 | 83 | int v = sx.spm(); // illegal |
aoqi@0 | 84 | ^ |
aoqi@0 | 85 | ProtectedMemberAccess3.java:80: pm() has protected access in pkg.SuperClass |
aoqi@0 | 86 | int w = lx.pm(); // illegal |
aoqi@0 | 87 | ^ |
aoqi@0 | 88 | ProtectedMemberAccess3.java:81: spm() has protected access in pkg.SuperClass |
aoqi@0 | 89 | int z = lx.spm(); // illegal |
aoqi@0 | 90 | ^ |
aoqi@0 | 91 | ProtectedMemberAccess3.java:83: pi has protected access in pkg.SuperClass |
aoqi@0 | 92 | int i = x.pi; // illegal |
aoqi@0 | 93 | ^ |
aoqi@0 | 94 | ProtectedMemberAccess3.java:84: spi has protected access in pkg.SuperClass |
aoqi@0 | 95 | int j = x.spi; // illegal |
aoqi@0 | 96 | ^ |
aoqi@0 | 97 | ProtectedMemberAccess3.java:86: pi has protected access in pkg.SuperClass |
aoqi@0 | 98 | int n = sx.pi; // illegal |
aoqi@0 | 99 | ^ |
aoqi@0 | 100 | ProtectedMemberAccess3.java:87: spi has protected access in pkg.SuperClass |
aoqi@0 | 101 | int m = sx.spi; // illegal |
aoqi@0 | 102 | ^ |
aoqi@0 | 103 | ProtectedMemberAccess3.java:89: pi has protected access in pkg.SuperClass |
aoqi@0 | 104 | int k = lx.pi; // illegal |
aoqi@0 | 105 | ^ |
aoqi@0 | 106 | ProtectedMemberAccess3.java:90: spi has protected access in pkg.SuperClass |
aoqi@0 | 107 | int l = lx.spi; // illegal |
aoqi@0 | 108 | ^ |
aoqi@0 | 109 | ProtectedMemberAccess3.java:92: pkg.SuperClass.pC has protected access in pkg.SuperClass |
aoqi@0 | 110 | pkg.SuperClass.pC obj1; // illegal |
aoqi@0 | 111 | ^ |
aoqi@0 | 112 | ProtectedMemberAccess3.java:93: pkg.SuperClass.spC has protected access in pkg.SuperClass |
aoqi@0 | 113 | pkg.SuperClass.spC obj2; // illegal |
aoqi@0 | 114 | ^ |
aoqi@0 | 115 | ProtectedMemberAccess3.java:95: pkg.SuperClass.pI has protected access in pkg.SuperClass |
aoqi@0 | 116 | pkg.SuperClass.pI obj3; // illegal |
aoqi@0 | 117 | ^ |
aoqi@0 | 118 | ProtectedMemberAccess3.java:96: pkg.SuperClass.spI has protected access in pkg.SuperClass |
aoqi@0 | 119 | pkg.SuperClass.spI obj4; // illegal |
aoqi@0 | 120 | ^ |
aoqi@0 | 121 | ProtectedMemberAccess3.java:98: pkg.SuperClass.pC has protected access in pkg.SuperClass |
aoqi@0 | 122 | Object o1 = (pkg.SuperClass.pC) null; // illegal |
aoqi@0 | 123 | ^ |
aoqi@0 | 124 | ProtectedMemberAccess3.java:99: pkg.SuperClass.spC has protected access in pkg.SuperClass |
aoqi@0 | 125 | Object o2 = (pkg.SuperClass.spC) null; // illegal |
aoqi@0 | 126 | ^ |
aoqi@0 | 127 | ProtectedMemberAccess3.java:101: pkg.SuperClass.pI has protected access in pkg.SuperClass |
aoqi@0 | 128 | Object o3 = (pkg.SuperClass.pI) null; // illegal |
aoqi@0 | 129 | ^ |
aoqi@0 | 130 | ProtectedMemberAccess3.java:102: pkg.SuperClass.spI has protected access in pkg.SuperClass |
aoqi@0 | 131 | Object o4 = (pkg.SuperClass.spI) null; // illegal |
aoqi@0 | 132 | ^ |
aoqi@0 | 133 | ProtectedMemberAccess3.java:104: pkg.SuperClass.pC has protected access in pkg.SuperClass |
aoqi@0 | 134 | class C1 extends pkg.SuperClass.pC {} // illegal |
aoqi@0 | 135 | ^ |
aoqi@0 | 136 | ProtectedMemberAccess3.java:105: pkg.SuperClass.spC has protected access in pkg.SuperClass |
aoqi@0 | 137 | class C2 extends pkg.SuperClass.spC {} // illegal |
aoqi@0 | 138 | ^ |
aoqi@0 | 139 | 46 errors |