Issue Details (XML | Word | Printable)

Key: JELLY-122
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Hans Gilde
Votes: 0
Watchers: 0
Operations

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

ComponentTag should clear it's bean reference

Created: 30/Aug/04 01:28 AM   Updated: 02/Sep/04 12:17 AM
Return to search
Component/s: None
Affects Version/s: 1.0-beta-4
Fix Version/s: 1.0-beta-4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works component-clear-bean.txt 2004-08-30 01:28 AM Hans Gilde 2 kB

Resolution Date: 02/Sep/04 12:17 AM


 Description  « Hide
The Swing CompoentTag should null-out the reference to its bean after it's done executed. No tags keep a reference to the ComponentTag itself, at most they'll get a reference to the underlying bean.

At the moment, ComponentTag can cause it's bean to stick around in memory unexpectedly. The Tag instance might be cached by the TagScript for later reuse. If the Tag keeps a reference to it's component, then that component won't be GC'd, even if the component is disposed. And the component itself will never be resued, so there's no point in keeping it around.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.