ConcurrentHashMap/ConcurrentMap/Map.compute

Doug Lea dl at cs.oswego.edu
Fri Dec 7 05:14:58 PST 2012


On 12/07/12 08:04, David Holmes wrote:

> I'm not quite sure how to interpret your "barely-yes".
>

What I was mainly getting at is:
Should the cases of existing ConcurrentMap methods and the new
function-accepting methods work differently? Suppose
someone calls computeIfAbsent on a JDK7-compliant
(but non-JDK) ConcurrentMap that doesn't have an explicit
override. They would get the non-atomic version. And this is
considered OK according to the the specs as I wrote them.
But still surprising to at least some users.

-Doug



More information about the lambda-libs-spec-observers mailing list