Public defender methods and static inner classes in interfaces?
jim at pentastich.org
Wed Sep 8 06:57:38 PDT 2010
That's true, but Java class definitions allow package level access while
Java interface definitions do not. The problem is that the proposed change
allows private access but explicitly disallows package level access.
On Wed, Sep 8, 2010 at 9:07 AM, Mark Thornton <mthornton at optrak.co.uk>wrote:
> On 08/09/2010 13:59, Jim Mayer wrote:
> > One problem with the suggestion below (that 'private' be allowed on
> > inside interfaces) is that it won't play nicely with unit testing
> > such as JUnit. JUnit conventions rely fairly heavily on 'package'
> > protection, and a 'private' class inside an interface would be difficult
> > test.
> Java already allows private classes within classes and also anonymous
> classes within interfaces. The same test issues arise in these cases.
> Mark Thornton
More information about the lambda-dev