Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Mike Schilling" Newsgroups: comp.lang.java.programmer Subject: Re: Why only public methods on interfaces? Date: Sat, 9 Apr 2011 22:28:16 -0700 Organization: A noiseless patient Spider Lines: 4 Message-ID: References: <25875c94-9af2-4d28-976d-2050a738ae2e@n10g2000yqf.googlegroups.com> <4sOdneh7k40lDgPQnZ2dnUVZ_vSdnZ2d@earthlink.com> <2011040801014026003-angrybaldguy@gmailcom> <5YSdnThYKPSwAgPQnZ2dnUVZ_gydnZ2d@earthlink.com> <58-dnYYCMK1urQLQnZ2dnUVZ_gGdnZ2d@earthlink.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=response Content-Transfer-Encoding: 7bit Injection-Date: Sun, 10 Apr 2011 05:28:17 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="9/+TJ1sP8X95OF6DtYKdgg"; logging-data="7918"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DIQALeQmwmqmqofFB86dKynOmfT9gGvc=" X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 In-Reply-To: <58-dnYYCMK1urQLQnZ2dnUVZ_gGdnZ2d@earthlink.com> X-Newsreader: Microsoft Windows Live Mail 14.0.8117.416 Importance: Normal Cancel-Lock: sha1:PIgiIzF949yZIQFmlYp5BhSsS8A= X-Priority: 3 X-MSMail-Priority: Normal Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3019 "Patricia Shanahan" wrote in message news:58-dnYYCMK1urQLQnZ2dnUVZ_gGdnZ2d@earthlink.com... > > The really unfortunate decision is not the public methods only, but the > decision to make non-specification of access mean public interface > method declarations but package access in class method declarations. > That cuts off any possibility of changing interfaces now to make them > more flexible. Actually, you could make an argument that "protected" on an interface method would mean "only visible within the package", because it can't mean "and also visible to derived types".