cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject RE: [c2] MRUMemoryStore bug & patch
Date Thu, 23 Aug 2001 12:28:07 GMT
Thanks,

Applied with small change: add to mrulist only existing objects ;)

Vadim

> -----Original Message-----
> From: Rick Tessner [mailto:rick@dingle.myra.com]
> Sent: Wednesday, August 22, 2001 11:39 PM
> To: cocoon-dev@xml.apache.org
> Subject: [c2] MRUMemoryStore bug & patch
> 
> 
> Hello all,
> 
> The MRUMemoryStore.get() method is no longer retrieving items
> that have been cached to the filesystem.
> 
> The cause is that the "CacheObject" class, defined in MRUMemoryStore.java,
> is no longer used.  It would generate an NPE in the event that a
> cached object was not found in memory.
> 
> It was this NPE that then forced the get() method (via try-catch block)
> to check the filesystem cache.
> 
> This patch simply replaces the try-catch block with an if-else block. Note
> that this diff was made against the cocoon_20_branch CVS branch.
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message