History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CACHE-296
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Lars Torunski
Reporter: Brendan McNamara
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OSCache

For a Cache class the cacheFlushed method is not being invoked on the CacheEntryEventListener.

Created: 05/Jun/07 08:50 PM   Updated: 01/Jul/07 01:41 AM
Component/s: Listeners
Affects Version/s: 2.4
Fix Version/s: 2.4.1

File Attachments: 1. Java Source File Cache.java (40 kb)


Flags: Patch


 Description  « Hide
Calling flushAll on an instance of class Cache should cause the cacheFlushed method to be called on any CacheEntryEventListener's configured on that cache. This is not happening.

There is a bug in the dispatchCachewideEvent method of class Cache. The cacheFlush method is not being called because the wrong index is supplied to the listeners[] array in the instanceof test.


Cache.java line 952:

if (listeners[i] instanceof CacheEntryEventListener) {

should be:

if (listeners[i+1] instanceof CacheEntryEventListener) {





 All   Comments   Change History      Sort Order:
Brendan McNamara - [06/Jun/07 02:13 AM ]
Attatched updated version of Cache.java

Lars Torunski - [09/Jun/07 02:26 AM ]
dispatchCachewideEvent fixed

Thanks to Brendan for the patch

Lars Torunski - [13/Jun/07 03:35 PM ]