PR java/19870 (Part 2/2): Handle private static methods accessed across nested classes
Tom Tromey
tromey@redhat.com
Sun Jun 19 23:00:00 GMT 2005
>>>>> "Ranjit" == Ranjit Mathew <rmathew@gmail.com> writes:
>> If m() were not private, the call would be to Sub.m(), which would be
>> invalid because it would be a use of 'this' in a static context.
Ranjit> What static context?
In a super() or this() call the arguments are considered to be in a
static context. The idea is that before the other constructor is
called, accesses via 'this' or 'super' are invalid.
Tom
More information about the Java-patches
mailing list