Latest draft of Defender Methods

Ola Bini ola.bini at gmail.com
Mon Aug 16 13:41:27 PDT 2010


On 2010-08-16 14.01, Brian Goetz wrote:
> I've posted a new draft of Defender Methods at:
>
>     http://cr.openjdk.java.net/~briangoetz/lambda/Defender%20Methods%20v3.pdf
>

1. Will it be possible to undefault a specific method? Say that 
Collection<T> defines a default method for reduce(), will it be possible 
to create an interface derived from Collection<T> that says that 
reduce() will have to be implemented by the implementing class after all?

2. When compiling a class that implements an extended interface, I 
assume it will act as if implementations for all default methods have 
been provided, when deciding if the class has to be abstract?


Cheers
-- 
  Ola Bini (http://olabini.com)
   Ioke - JRuby - ThoughtWorks

  "Yields falsehood when quined" yields falsehood when quined.



More information about the lambda-dev mailing list