--- old/src/share/classes/com/sun/tools/javac/comp/Attr.java 2012-10-25 16:11:26.239217897 +0200 +++ new/src/share/classes/com/sun/tools/javac/comp/Attr.java 2012-10-25 16:11:26.127217891 +0200 @@ -3047,6 +3047,7 @@ // except for two situations: owntype = sym.type; if (owntype.tag == CLASS) { + chk.checkForBadAuxiliaryClassAccess(tree.pos(), env, (ClassSymbol)sym); Type ownOuter = owntype.getEnclosingType(); // (a) If the symbol's type is parameterized, erase it