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 |