https://issues.apache.org/bugzilla/show_bug.cgi?id=48634
Summary: The setSize method of LRUCache do not disabled the
cache
Product: Batik
Version: 1.7
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: GVT
AssignedTo: [email protected]
ReportedBy: [email protected]
I'm using JPEGTranscoder in a webapp.
I call the LRUCache.setsize at init of my webapp. It flushed the LRUCache.used
list and set the LRUCache.maxsize variable to 0. The LRUCache.free list remains
at 50 (which it initizialed by TileCache) which is in my opinion not logic.
The LRUCache.add method test the size of the LRUCache.free list to cache new
item to the LRUCache.used list.
The LRUCache.used list grows up to 50. The LRUCache.setSize method is not able
to flush the LRUCache.used list because there is if statement (inferior strict)
on the maxsize (at 0) value against the new size (at 0).
If think a workaround would be to call LRUCache.setSized twice, the first with
value > 50 and the second with 0
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]