RFR(s): 8060192: Add default method Collection.toArray(generator)

Martin Buchholz martinrb at google.com
Tue Dec 5 04:26:02 UTC 2017


The needToWorkAround6260652 changes ought to be in a separate changeset.

The biggest question is whether Collection.toArray(generator) pulls its
weight, especially in view of
https://shipilev.net/blog/2016/arrays-wisdom-ancients.

I rarely want to dump elements into a typed array.  Dumping into Object[]
with toArray() is just fine for me (but I'm a biased core library
developer).


More information about the core-libs-dev mailing list