• Bug
  • Status: Closed
  • Resolution: Fixed
  • drb
  • Reporter: sourceforgetracker
  • September 21, 2009
  • 0
  • Watchers: 0
  • September 22, 2009
  • September 22, 2009

Description

Constructing an Element using constructors such as:

public Element(Object key, Object value, boolean eternal, int timeToIdleSeconds, int timeToLiveSeconds)

does not have the same effect as:

Element element = new Element(key,xml); element.setEternal(eternal); element.setTimeToIdle(timeToIdleSeconds); element.setTimeToLive(timeToLiveSeconds);

because the internal flag livespan does not get set. This means Cache.put(element) will wipe out these configured values when it calls applyDefaultsToElementWithoutLifespanSet(element). Please decide how the class should behave and keep it consistent!

Sourceforge Ticket ID: 2765691 - Opened By: berthamilton - 15 Apr 2009 15:12 UTC

Comments

Fiona OShea 2009-09-22

Re-opening so that I can properly close out these issues and have correct Resolution status in Jira