Final defenders

Yuval Shavit yshavit at
Tue Aug 7 11:40:34 PDT 2012

On Tue, Aug 7, 2012 at 2:10 PM, Aleksey Shipilev <
aleksey.shipilev at> wrote:

> Unless you have better suggestion for this?

What about an annotation, @Stateless?

>  > Also, what would happen if two interfaces both declare a method as
> final?
> As I said in the original proposal it is the same kind of collision as
> we have now in default/default collision case. It is a linkage error to
> have ambiguous final pair.

Here I've gotten caught -- I haven't yet gotten around to downloading the
binaries and playing with them! But I thought there was a way, in a
concrete class, to chose which of the defaults to use? This requires
overriding the collided method, which is of course not possible if one or
both interfaces have declared it as final -- so a collision that can be
handled for most default collisions, wouldn't be now.

More information about the lambda-dev mailing list