Syntax for calling super

Brenden Towey brendentowey at gmail.com
Wed Aug 22 18:09:13 PDT 2012


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