Discussions

News: Java 7 Feature Overview

  1. Java 7 Feature Overview (3 messages)

    We discussed previously everything that didn’t make it into Java 7 and then reviewed the useful Fork/Join Framework that did make it in.

    Today’s post will take us through each of the Project Coin features – a collection of small language enhancements that aren’t groundbreaking, but are nonetheless useful for any developer able to use JDK 7.

    I’ve come up with a bank account class that showcases the basics of Project Coin features.

    Read the rest of the article at the following URL:

    Java Code Geeks: Java 7 Feature Overview

    Threaded Messages (3)

  2. wishlist[ Go to top ]

    Mine would have been:

    Maps/Lists as first-class citizens so you could do:

    Map map;

    List l;

    map["bill"] = ...;

    l[0] = 1;

     

    Dynamic Dispatch.  So that you can invoke on JSON/XML like you can in Javascript and not have to worry about the compiler barfing on you.

    JSON json;

    json.anything.goes["hello"].whatever()

    Dynamic dispatch would get rid of the need in most cases for the horrible mess of JAXB and other mapping technologies.

     

  3. Groovy does that[ Go to top ]

    Mine would have been:

    Maps/Lists as first-class citizens so you could do:

    Map map;

    List l;

    map["bill"] = ...;

    l[0] = 1;

     

    Dynamic Dispatch.  So that you can invoke on JSON/XML like you can in Javascript and not have to worry about the compiler barfing on you.

    JSON json;

    json.anything.goes["hello"].whatever()

    Dynamic dispatch would get rid of the need in most cases for the horrible mess of JAXB and other mapping technologies.

     

    Maps, Lists, JSON'y syntax: Try Groovy

  4. Groovy does that[ Go to top ]

    Then I want Groovy features in Java