Resync j.u.c and Update ConcurrentHashMap to v8 - JEP 155

Paul Sandoz paul.sandoz at oracle.com
Tue May 28 08:11:05 UTC 2013


On May 27, 2013, at 3:05 PM, Doug Lea <dl at cs.oswego.edu> wrote:
>> 
>> - The default for getOrDefault() in ConcurrentMap shouldn't be removed.
>> 
>> - CopyOnWriteArraySet currently has an ORDERED spliterator. Set is not normally order preserving.
>> 
> 
> Thanks! Both the results of my not rechecking vs lambda versions
> (where a lot of this code has been running for a while now).
> Hopefully no other three-way diffs of jsr166, lambda, tl
> fell between cracks.
> 

I flip-flopped on this one, since the use of CopyOnWriteArrayList by CopyOnWriteArraySet is explicitly stated but it is not explictly stated that CopyOnWriteArraySet.add defers to CopyOnWriteArrayList.addIfAbsent.

Paul.


More information about the core-libs-dev mailing list