Java 7 has been released!

Duke Cowboy Java

Five years after Java 6, Oracle has just released Java 7! This is the first release of Java since Oracle bought Sun Microsystems. This new version of Java introduces a lot of new features, but some of the languages new features will be introduced in Java 8 as stated by the “Plan B”. In this [...]



JDK 7 Features updated ! Plan B has apparently been approved

OracleStratSmall

I was presenting the Plan B of JDK 7 the last week and apparently, this plan has been approved. The JDK 7 Features page has been updated on the site of Oracle. So here are the (definitive ?) list of features for JDK 7 : JSR 292: Support for dynamically-typed languages (InvokeDynamic) Languages update of [...]



Java 7 Delays and Plan B

Duke Java Logo

Mark Reinhold has posted a message about the planning of Java 7. In this message, he explains that the current schedule of the JDK 7 is completely unrealistic. This delay is due to the add of new projects (lambda, Coin, Jigsaw) and the acquisition of Sun by Oracle. The current estimate by the team is [...]



Java File Copy Benchmark Updates (once again)

Duke Java Logo

I’ve made another updates to my file copy benchmark. First of all, I used my little utility class to automatically create the graphs. The graph are a little less clean, but I spare a lot of time not creating them myself. Then, I’ve also made some corrections on the code : I”ve used a buffer [...]



Java 7 : The new try-with-resources statement

Duke Java Logo

From the build 105, the compiler and runtime of Java 7 Releases have support for the new form of try : try-with-resources, also called ARM (Automatic Resource Management) blocks. This new statement make working with streams and all kind of closeable resources easier. By example, in Java, you can have this kind of code : [...]



State of the Lambda

Duke Java Logo

Brian Goetz, from Oracle, has posted an updated proposal for the lambda expressions : State of the Lambda Here are some examples of closures taken from the proposal : We can use lambda expressions to replace the heavy usage of Single Abstract Method (SAM) interfaces : We can make references to methods to use it [...]



Java 7 : Translucency and shaped windows

Duke Java Logo

Java 7 introduces very interesting features for desktop windows : Transclucency for windows : Make a full window translucent with a specified alpha level Per pixel translucency : Make a part of the window translucent. Shaped windows : You can now create windows with a certain shape, like circle, ovale, triangle, … We’ll see all [...]



Java 7 : Add “public defender methods” to Java interfaces

Java Logo

At this time, we aren’t sure that the closures will be included in the Java 7 release. But these doubts have generated a new project : The “public defender methods” proposal. This new proposal for Java 7 wants to improve the interfaces allowing to add new methods to existing interfaces. The classes implementing the interfaces [...]



Java 7 : Oracle pushes a first version of closures

Java Logo

2 days ago, Oracle pushed a first version of the closures implementation. We can see the evolving syntax in the test cases they made for the Java compiler. You can see these test cases here. This revision supports the following features (copied from revision) : Function types syntax Function types subtyping Full support for lambda [...]



Better exception handling in Java 7 : Multicatch and final rethrow

Java Logo

I’m happy to announce that an other improvement from the Project Coin has be marked for inclusion in Java 7 : Improved Exception Handling for Java, from Neal Gafter. This has been announced by Joe Darcy on his blog. This improvement add two litlte improvements to exception handling : Multicatch : You’ll now be able [...]