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

changeset 689
77cc34d5e548
parent 676
bfdfc13fe641
child 700
7b413ac1a720
equal deleted inserted replaced
688:50f9ac2f4730 689:77cc34d5e548
1420 if (localEnv.info.varArgs) 1420 if (localEnv.info.varArgs)
1421 assert mtype.isErroneous() || tree.varargsElement != null; 1421 assert mtype.isErroneous() || tree.varargsElement != null;
1422 1422
1423 // Compute the result type. 1423 // Compute the result type.
1424 Type restype = mtype.getReturnType(); 1424 Type restype = mtype.getReturnType();
1425 assert restype.tag != WILDCARD : mtype; 1425 if (restype.tag == WILDCARD)
1426 throw new AssertionError(mtype);
1426 1427
1427 // as a special case, array.clone() has a result that is 1428 // as a special case, array.clone() has a result that is
1428 // the same as static type of the array being cloned 1429 // the same as static type of the array being cloned
1429 if (tree.meth.getTag() == JCTree.SELECT && 1430 if (tree.meth.getTag() == JCTree.SELECT &&
1430 allowCovariantReturns && 1431 allowCovariantReturns &&

mercurial