From: Ito Kazumitsu <[EMAIL PROTECTED]> Date: Wed, 17 May 2006 01:20:37 +0900 (JST)
> But the following cannot be compiled because "a" in type "ZZ$ZZ1" is > not accessible. Isn't this an access from within the top level class? I understand. It is not an access to "a" in type "ZZ$ZZ1". > public class ZZ { > public class ZZ1 { > private int a; > public void foo() {} > } > > ZZ1 zz1; > > public ZZ() { > zz1 = new ZZ1() { > public void foo() { > a = 1; This is not an access to "a" in "ZZ1", but an access to "a" in the anonymous class as a subclass of "ZZ1". And the private member "a" cannot be inherited. _______________________________________________ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe