addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1linklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [ljc] Defender Methods

From: Russel W.
Sent on: Tuesday, August 14, 2012 1:55 PM
On Wed,[masked] at 13:34 -0400, Richard Warburton wrote:
[…]
> tl;dr - if you add a method like 'filter' to an interface like
> Collection then you're making a binary incompatible change to the API.
>  So you provide a default method that is inherited if no alternative
> is provided in order to be able to more easily evolve interface based
> APIs.

OK, so this is just backward compatibility hacking. This is how cruft
evolves :-(

> > Is there a document explaining all this you can point me at?
> 
> http://cr.openjdk...­

Aha, mixins, traits. Now I can support the feature even though it isn't
really mixins or traits. I suspect if the marketing of the feature had
been "moving towards mixins and traits in Java" rather than "we need
this feature to hack round problems with introducing lambda functions",
then there would have been more excitement and less scepticism.

-- 
Russel.
====================­====================­====================­=================
Dr Russel Winder      t: [masked]   voip: sip:[address removed]
41 Buckmaster Road    m: [masked]   xmpp: [address removed]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

This email message originally included an attachment.

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.

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