JDK 7 Closures

Java’s Collection Interfaces to get an Update?

Jessica Thornsby

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.

comments powered by Disqus