[10?] RFR: 8193128: Reduce number of implementation classes returned by List/Set/Map.of()

Claes Redestad claes.redestad at oracle.com
Wed Dec 6 23:08:07 UTC 2017


On 2017-12-06 22:20, Martin Buchholz wrote:
> Guava struggled with this as well with their immutable collections.  
> You could look at their revision history (I haven't). Maybe they got 
> rid of SingletonImmutableList for the same reason?

I've not looked at guava sources, but I've seen comments alluding to 
similar issues there, yes.

There's definitely different trade-offs here, and I'm making the 
conservative choice of taking the one that is in effect and trying to 
make it just a bit better.


More information about the core-libs-dev mailing list