ConcurrentHashMap/ConcurrentMap/Map.compute

Arne Siegel v.a.ammodytes at googlemail.com
Mon Dec 17 10:58:58 PST 2012


On 17 Dec 2012 at 7:48, Doug Lea wrote:

> 
> A fixed-up successfully jdk8-javadoc'ed version of Map is now at
>   http://gee.cs.oswego.edu/dl/wwwtmp/apis/Map.java
> with displayable javadoc at:
>   http://gee.cs.oswego.edu/dl/wwwtmp/apis/java/util/Map.html
> 
> Comments? Complaints? If not, feel free to integrate.
> 
> (Arne: thanks for pointing out that "merge" was mangled.)
 
Hi Doug,

I must say, I'm afraid, the supplied file is again not free of errors, but it can easily be fixed. 
Just replace
            else if ((newValue = remappingFunction.apply(oldValue, value)) != null) {
by
            else if ((newValue = remappingFunction.apply(key, oldValue)) != null) {
and the file compiles (and behaves). This is also wrong in the javadoc comment.

Regards
Arne


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