Default method survey results

Paul Benedict pbenedict at apache.org
Sat Aug 18 21:10:55 PDT 2012


On Sat, Aug 18, 2012 at 3:14 AM, maurizio cimadamore
<maurizio.cimadamore at oracle.com> wrote:
> If you are coming from 'a default method is a concrete method', then I
> agree, the argument is pretty strong.
> But it would not reflect the behavior very well; as pointed out by Remi, a
> default method is essentially an abstract method with a 'suggestion' for the
> VM - if no implementation can be found for a given method, here's one for
> you. The class-hierarchy establishes as to whether the method becomes
> concrete or remains abstract.

Maurizio,

Is a default method abstract in terms of source code? For example, if
interface A has default method X, recompiling class B implements A
must implement X?

Paul


More information about the lambda-dev mailing list