Public defender methods and static inner classes in interfaces?

Kevin Bourrillion kevinb at google.com
Tue Aug 31 19:56:42 PDT 2010


On Tue, Aug 31, 2010 at 7:45 PM, Andrew Thompson <
lordpixel+lamda-dev at mac.com <lordpixel%2Blamda-dev at mac.com>> wrote:

People often forget Java allows multiple non-public types in a compilation
> unit (File).
>

We should all forget it.  :-)

It's a bad idea, because nothing will stop you from creating another class
called Trait in another file in that package, and which Trait.class you'll
actually end up with is nondeterministic!


-- 
Kevin Bourrillion @ Google
http://guava-libraries.googlecode.com


More information about the lambda-dev mailing list