@@ -997,7 +997,7 @@ private void processExpiries(K key, RICacheEventDispatcher<K, V> dispatcher,
997997 V expiredValue ) {
998998 entries .remove (key );
999999 dispatcher .addEvent (CacheEntryExpiredListener .class ,
1000- new RICacheEntryEvent <K , V >(this , key , expiredValue , EXPIRED ));
1000+ new RICacheEntryEvent <K , V >(this , key , expiredValue , expiredValue , EXPIRED ));
10011001 }
10021002
10031003 /**
@@ -1029,7 +1029,7 @@ public boolean remove(K key) {
10291029 RICacheEventDispatcher <K , V > dispatcher = new RICacheEventDispatcher <K ,
10301030 V >();
10311031 dispatcher .addEvent (CacheEntryRemovedListener .class ,
1032- new RICacheEntryEvent <K , V >(this , key , value , REMOVED ));
1032+ new RICacheEntryEvent <K , V >(this , key , value , value , REMOVED ));
10331033 dispatcher .dispatch (listenerRegistrations );
10341034
10351035 result = true ;
@@ -1079,7 +1079,7 @@ public boolean remove(K key, V oldValue) {
10791079 RICacheEventDispatcher <K , V > dispatcher = new
10801080 RICacheEventDispatcher <K , V >();
10811081 dispatcher .addEvent (CacheEntryRemovedListener .class ,
1082- new RICacheEntryEvent <K , V >(this , key , oldValue , REMOVED ));
1082+ new RICacheEntryEvent <K , V >(this , key , oldValue , oldValue , REMOVED ));
10831083 dispatcher .dispatch (listenerRegistrations );
10841084
10851085 result = true ;
@@ -1141,7 +1141,7 @@ public V getAndRemove(K key) {
11411141 RICacheEventDispatcher <K , V > dispatcher = new RICacheEventDispatcher <K ,
11421142 V >();
11431143 dispatcher .addEvent (CacheEntryRemovedListener .class ,
1144- new RICacheEntryEvent <K , V >(this , key , result , REMOVED ));
1144+ new RICacheEntryEvent <K , V >(this , key , result , result , REMOVED ));
11451145 dispatcher .dispatch (listenerRegistrations );
11461146 }
11471147 } finally {
@@ -1427,7 +1427,7 @@ public void removeAll(Set<? extends K> keys) {
14271427 processExpiries (key , dispatcher , value );
14281428 } else {
14291429 dispatcher .addEvent (CacheEntryRemovedListener .class ,
1430- new RICacheEntryEvent <K , V >(this , key , value , REMOVED ));
1430+ new RICacheEntryEvent <K , V >(this , key , value , value , REMOVED ));
14311431 }
14321432 }
14331433 }
@@ -1450,7 +1450,7 @@ public void removeAll(Set<? extends K> keys) {
14501450 processExpiries (key , dispatcher , value );
14511451 } else {
14521452 dispatcher .addEvent (CacheEntryRemovedListener .class ,
1453- new RICacheEntryEvent <K , V >(this , key , value , REMOVED ));
1453+ new RICacheEntryEvent <K , V >(this , key , value , value , REMOVED ));
14541454 }
14551455 }
14561456
@@ -1537,7 +1537,7 @@ public void removeAll() {
15371537 processExpiries (key , dispatcher , value );
15381538 } else {
15391539 dispatcher .addEvent (CacheEntryRemovedListener .class ,
1540- new RICacheEntryEvent <K , V >(this , key , value , REMOVED ));
1540+ new RICacheEntryEvent <K , V >(this , key , value , value , REMOVED ));
15411541 size ++;
15421542 }
15431543 }
@@ -1729,7 +1729,7 @@ public <T> T invoke(K key, javax.cache.processor.EntryProcessor<K, V,
17291729 oldValue = cachedValue == null ? null : valueConverter .fromInternal (cachedValue .get ());
17301730 entries .remove (internalKey );
17311731
1732- dispatcher .addEvent (CacheEntryRemovedListener .class , new RICacheEntryEvent <K , V >(this , key , oldValue , REMOVED ));
1732+ dispatcher .addEvent (CacheEntryRemovedListener .class , new RICacheEntryEvent <K , V >(this , key , oldValue , oldValue , REMOVED ));
17331733
17341734 if (statisticsEnabled ()) {
17351735 statistics .increaseCacheRemovals (1 );
@@ -2168,7 +2168,7 @@ public void remove() {
21682168 RICacheEventDispatcher <K , V >();
21692169 dispatcher .addEvent (CacheEntryRemovedListener .class ,
21702170 new RICacheEntryEvent <K , V >(RICache .this , lastEntry .getKey (),
2171- lastEntry .getValue (), REMOVED ));
2171+ lastEntry .getValue (), lastEntry . getValue (), REMOVED ));
21722172 dispatcher .dispatch (listenerRegistrations );
21732173
21742174 } finally {
0 commit comments