Permalink
Browse files

Fix incorrect arg order (old value goes first).

  • Loading branch information...
1 parent b20e028 commit f9f1e6e25f1dc537909988889eab7e39d93e0c92 @thedarkone committed Dec 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMapV8.java
@@ -1851,7 +1851,7 @@ else if (f.casHash(fh, fh | LOCKED)) {
if ((e.hash & HASH_BITS) == h &&
(ev = e.val) != null &&
((ek = e.key) == k || k.equals(ek))) {
- val = mf.apply(v, (V)ev);
+ val = mf.apply((V)ev, v);
if (val != null)
e.val = val;
else {

0 comments on commit f9f1e6e

Please sign in to comment.