Public defender methods and static inner classes in interfaces?

Andrew Thompson lordpixel+lamda-dev at
Wed Sep 1 19:55:22 PDT 2010

On Sep 1, 2010, at 2:16 AM, Peter Levart wrote:

> I think that (havent checked the spec, but from my experience) the JVM does allow calling public method in an otherwise unaccessible class. It's just javac that does not allow compiling such program.

But the interface (Example) and the package private class (Trait) are in the same package, so the method is perfectly accessible in that context. Have I missed something?

AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside

	(see you later space cowboy, you can't take the sky from me)

More information about the lambda-dev mailing list