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

Print this page

        

*** 814,824 **** t = chk.checkClassOrArrayType(tree.pos(), t, checkExtensible|!allowGenerics); } if (interfaceOrArrayExpected && !(t.tsym.isInterface() || t.getTag() == ARRAY)) { ! log.error(tree.pos(), "intf.expected.here"); // return errType is necessary since otherwise there might // be undetected cycles which cause attribution to loop return types.createErrorType(t); } else if (checkExtensible && classExpected && --- 814,824 ---- t = chk.checkClassOrArrayType(tree.pos(), t, checkExtensible|!allowGenerics); } if (interfaceOrArrayExpected && !(t.tsym.isInterface() || t.getTag() == ARRAY)) { ! log.error(tree.pos(), "intf.or.array.expected.here"); // return errType is necessary since otherwise there might // be undetected cycles which cause attribution to loop return types.createErrorType(t); } else if (checkExtensible && classExpected &&