Re: [ljc] Re: Defender Methods

From: Samir T.
Sent on: Wednesday, August 29, 2012 8:46 PM
I think that's a huge step. Far bigger than default methods. Interfaces 
define a contract, and all default methods do is ensure the contract is 
met even if an implementation is not provided. Adding state to an 
interface would defeat the purpose.

— Samir.

On 29/08/[masked]:36, Tom Hawtin wrote:
> On 28/08/2012, Russel Winder <[address removed]> wrote:
>> I am not sure this is the case. Abstract classes are within the
>> inheritance hierarchy, interfaces are in the implements hierarchy. As
>> well as multiple implements being fine and multiple extends being
>> anathema, interfaces cannot introduce new state.
> We have come this far. Both sentences in the opening paragraph on
> interfaces in the Java SE 7 JLS will become incorrect in Java SE 8. I
> don't think it'd be much of stretch for Java SE 9 to add private
> instance fields to interfaces, if the will is there.
> Tom
> --
> 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 Tom Hawtin ([address removed]) from LJC - London Java Community.
> To learn more about Tom Hawtin, 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 12/13 Jun 14

  • SkillsMatter

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

  • 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.

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