Public defender methods and static inner classes in interfaces?
Mark Thornton
mthornton at optrak.co.uk
Wed Sep 8 06:07:23 PDT 2010
On 08/09/2010 13:59, Jim Mayer wrote:
> One problem with the suggestion below (that 'private' be allowed on classes
> inside interfaces) is that it won't play nicely with unit testing frameworks
> such as JUnit. JUnit conventions rely fairly heavily on 'package'
> protection, and a 'private' class inside an interface would be difficult to
> test.
Java already allows private classes within classes and also anonymous
classes within interfaces. The same test issues arise in these cases.
Regards,
Mark Thornton
More information about the lambda-dev
mailing list