Use "default" keyword for default visibility.

Jeremy Manson jeremy.manson at gmail.com
Sun Mar 1 09:07:23 PST 2009


I'm not sure that I understand how using a package qualifier would
actually help anyone's intuition in this case.  You still get the same
behavior.  If you are getting the behavior anyway, the only people who
would be helped by putting in an explicit package qualifier are those
who already understand the existing override semantics.  Those are the
people who likely wouldn't have this problem in the first place.  No?

It is also worth pointing out that using the existing @Override
annotation does, in fact, cover many of the cases that concern the
author of this puzzler.

Jeremy

On Sun, Mar 1, 2009 at 2:20 AM, Adrian Kuhn <akuhn at iam.unibe.ch> wrote:
> On 01.03.2009, at 10:15, Jeremy Manson wrote:
>
>> Could you dig up the example?  It is hard to see why this is
>> compelling without it.
>
> http://dow.ngra.de/2009/02/16/the-ultimate-java-puzzler
>
> --AA
>



More information about the coin-dev mailing list