src/share/classes/com/sun/tools/javac/comp/Attr.java

changeset 1384
bf54daa9dcd8
parent 1381
23fe1a96bc0f
child 1393
d7d932236fee
equal deleted inserted replaced
1383:b980e8e6aabf 1384:bf54daa9dcd8
3048 case TYP: 3048 case TYP:
3049 // For types, the computed type equals the symbol's type, 3049 // For types, the computed type equals the symbol's type,
3050 // except for two situations: 3050 // except for two situations:
3051 owntype = sym.type; 3051 owntype = sym.type;
3052 if (owntype.hasTag(CLASS)) { 3052 if (owntype.hasTag(CLASS)) {
3053 chk.checkForBadAuxiliaryClassAccess(tree.pos(), env, (ClassSymbol)sym);
3053 Type ownOuter = owntype.getEnclosingType(); 3054 Type ownOuter = owntype.getEnclosingType();
3054 3055
3055 // (a) If the symbol's type is parameterized, erase it 3056 // (a) If the symbol's type is parameterized, erase it
3056 // because no type parameters were given. 3057 // because no type parameters were given.
3057 // We recover generic outer type later in visitTypeApply. 3058 // We recover generic outer type later in visitTypeApply.

mercurial