JEP 186: Collection Literals

Jochen Theodorou blackdrag at
Fri Jan 31 00:59:17 PST 2014

Am 31.01.2014 09:43, schrieb Remi Forax:
> If one day the JDK has persistent collections (and I hope it will),
> there will be not interface to abstract them.
> (you can still ask all implementations in the javadoc of the interface
> to super swear that they are immutable but it's a weak contract).

But the same goes for an abstract base class. So those persistent 
collections would always have to have only the concrete class and most 
probably no super class besides Object.

Supporting different implementations then becomes difficult.

bye Jochen

Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit

More information about the lambda-dev mailing list