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

changeset 630
237f3bd52242
parent 629
0fe472f4a332
child 631
a2d8c7071f24
equal deleted inserted replaced
629:0fe472f4a332 630:237f3bd52242
1592 else { 1592 else {
1593 localEnv.info.selectSuper = cdef != null; 1593 localEnv.info.selectSuper = cdef != null;
1594 localEnv.info.varArgs = false; 1594 localEnv.info.varArgs = false;
1595 tree.constructor = rs.resolveConstructor( 1595 tree.constructor = rs.resolveConstructor(
1596 tree.pos(), localEnv, clazztype, argtypes, typeargtypes); 1596 tree.pos(), localEnv, clazztype, argtypes, typeargtypes);
1597 tree.constructorType = checkMethod(clazztype, 1597 tree.constructorType = tree.constructor.type.isErroneous() ?
1598 tree.constructor, 1598 syms.errType :
1599 localEnv, 1599 checkMethod(clazztype,
1600 tree.args, 1600 tree.constructor,
1601 argtypes, 1601 localEnv,
1602 typeargtypes, 1602 tree.args,
1603 localEnv.info.varArgs); 1603 argtypes,
1604 typeargtypes,
1605 localEnv.info.varArgs);
1604 if (localEnv.info.varArgs) 1606 if (localEnv.info.varArgs)
1605 assert tree.constructorType.isErroneous() || tree.varargsElement != null; 1607 assert tree.constructorType.isErroneous() || tree.varargsElement != null;
1606 } 1608 }
1607 1609
1608 if (cdef != null) { 1610 if (cdef != null) {

mercurial