Updated State of the Lambda

Henri Gerrits henrigerrits at yahoo.com
Mon Dec 12 10:41:09 PST 2011


>and you need 'default none' to re-abstract a method of an interface,
>i.e. to say I don't want to inherits from the default implementation.
>
>interface I {
>  void m() default { ... }
>}
>interface J extends I {
>  void m() default none;
>}
>class A implements J {
>  // don't compile, you need to provide a code for m()
>}
>
>Because methods defined in an interface are always abstract,
>you can't use abstract instead of default none.
>
Have you considered 'default null'?  It will save a keyword - even if it is only a local one - and it conveys the appropriate meaning (compare this to setting a variable to null to indicate that the referred to object is no longer needed).
 
Best regards,
 
Henri


More information about the lambda-dev mailing list