So the first thing I wondered when reading this email is "What the
hell? Is this not bringing multiple inheritance into Java?"
The same question has been asked on Stackoverflow and someone has
answered that you can't inherit attributes from an interface.
This doesn't solve the issue of inheriting to default implementations.
In the link above someone mentions that if you happen to inherit two
default implementations then you get neither and must create your own
implementation. This sounds rather brittle to me because we will now
have to worry about interface compatibility.
Also I'm guessing default implementations can only work with methods
from the current and inherited interfaces, that is no attributes will
be allowed. Doesn't this severely limit the usefulness of this
feature? Though I guess people would have said the same sort of thing
about interfaces previously.
What I'm getting at I guess is that since it looks like Java 8 is
going half way with default implantations why not just finish the job
and add support for traits :)
On 8 August[masked]:20, Alex Anderson <[address removed]> wrote:
> It's a shame there's not a third option in the survey - if a method
> body is declared in an interface, then surely it could be understood
> implicitly to be a default implementation?
> Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
> This message was sent by Alex Anderson ([address removed]) from LJC - London Java Community.
> To learn more about Alex Anderson, visit his/her member profile: http://www.meetup...
> Set my mailing list to email me
> As they are sent
> In one daily email
> Don't send me mailing list messages
> Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]