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

changeset 1844
29dcd6715b04
parent 1843
be62183f938a
parent 1842
6d3b33aea370
child 1864
e42c27026290
equal deleted inserted replaced
1843:be62183f938a 1844:29dcd6715b04
1617 if ((origin.flags() & INTERFACE) == 0 && 1617 if ((origin.flags() & INTERFACE) == 0 &&
1618 protection(m.flags()) > protection(other.flags())) { 1618 protection(m.flags()) > protection(other.flags())) {
1619 log.error(TreeInfo.diagnosticPositionFor(m, tree), "override.weaker.access", 1619 log.error(TreeInfo.diagnosticPositionFor(m, tree), "override.weaker.access",
1620 cannotOverride(m, other), 1620 cannotOverride(m, other),
1621 other.flags() == 0 ? 1621 other.flags() == 0 ?
1622 Flag.PACKAGE : 1622 "package" :
1623 asFlagSet(other.flags() & AccessFlags)); 1623 asFlagSet(other.flags() & AccessFlags));
1624 m.flags_field |= BAD_OVERRIDE; 1624 m.flags_field |= BAD_OVERRIDE;
1625 return; 1625 return;
1626 } 1626 }
1627 1627

mercurial