Syntax for calling super
Yuval Shavit
yshavit at akiban.com
Wed Aug 22 18:13:41 PDT 2012
What about borrowing syntax from generic methods? super<K>.m() (This is
different, albeit potentially confusingly, from super.<K>m()).
On Wed, Aug 22, 2012 at 9:09 PM, Brenden Towey <brendentowey at gmail.com>wrote:
> On 8/22/2012 3:32 PM, Yuval Shavit wrote:
> > To my mind, the syntax "should" be K.m() (without the super). That makes
>
>
> I'd tend to agree, except for the problems you mention. What about
> "J.super.m()"? "Don't call me call my parent class?"
>
> interface J extends K {
> int m() default { return J.super.m(); } // calls J's parent's m()
> }
>
>
>
>
>
More information about the lambda-dev
mailing list