addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrosseditemptyheartfacebookfolderfullheartglobegmailgoogleimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Re: [SPAM] [ljc] Re: Defender Methods"

From: user 1.
Sent on: Wednesday, August 8, 2012 8:56 AM
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.

http://stackoverf...­]

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])
> http://www.meetup...­
> 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
> http://www.meetup...­
>
> In one daily email
> http://www.meetup...­
>
> Don't send me mailing list messages
> http://www.meetup...­
> Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]
>

Our Sponsors

  • Our Blog

    Read the latest news from the LJC

  • RecWorks Ltd

    Fixing Tech Recruitment using the Power of Community

  • jClarity

    Java/JVM Performance Analysis Tools & mentoring for Java related matters

  • LJC Aggrity

    Our LJC Aggrity site contains blog posts from our members

  • LJC Book Club

    Our Book club with book reviews from our members

  • Devoxx UK

    Java Community Conference in collaboration with the LJC, 8-10th June 16

  • SkillsMatter

    "Host, help organise, promote, film many of our meetings."

  • IBM

    Build Enterprise-grade apps at start-up speed.

  • New Relic

    New Relic makes sense of billions of metrics a day in real time.

  • Hazelcast

    Hazelcast is the leader in operating in-memory computing.

  • Java.Net

    We are an official Java User Group recognised by Oracle's JUG program

  • JRebel

    Free 3 month J-Rebel license.

  • O'Reilly

    40% discount on printed books and 50% on e-books.

  • Craft Rebellion

    Your choice of fresh craft beer, delivered. For 10% off use ‘LJC'

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy