JDK 7 Closures

Java's Collection Interfaces to get an Update?

Following David Flanagan's post suggesting that closures will not be ready for the JDK 7 deadline, Brian Goetz, a Senior Engineer at Oracle has posted a document suggesting that Java's Collection interfaces need to be updated before closures can be added.

He proposes introducing a mechanism for adding new methods to existing interfaces, which he dubs “virtual extension methods.” In his opinion, this would allow existing interfaces to be added to, without compromising backward compatibility.

The full document (pdf) can be viewed now.

Jessica Thornsby

What do you think?

JAX Magazine - 2014 - 05 Exclucively for iPad users JAX Magazine on Android

Comments

Latest opinions