Compilation of lambda in an interface, do we have a plan ?
Brian Goetz
brian.goetz at oracle.com
Wed May 22 12:05:43 PDT 2013
>> Making interface lambda methods static where possible was done in
>> lambda weeks back.
>
> It depends what you mean by 'where possible', i.e. where you draw the line.
> As far as I understand, we only need to make the lambdas that do a super
> non-static,
> not all lambdas that capture 'this'.
>
> I'm not very comfortable to have instance default method in interface
> when a static method can work
> (even if it's not very rational, private methods are no more overridable
> that static ones).
The eventual (for Java SE 8) outcome will be that we do the same thing
in classes and interfaces. But there were some implementation
difficulties that have slowed our movement in this direction, and
they're being ironed out.
More information about the lambda-spec-experts
mailing list