Bugs item #1286607, was opened at 2005-09-10 17:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1286607&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Martijn Dashorst (dashorst)
Assigned to: Nobody/Anonymous (nobody)
Summary: Infinite loop when adding attributemodifier twice
Initial Comment:
I accidentally added same attribute modifier twice into
same component. It caused an infinite loop. Took a
while to find the reason for this.
AttributeModifiers are chained one to another:
public final Component add(final AttributeModifier
modifier)
{
modifier.next = attributeModifiers;
attributeModifiers = modifier;
return this;
}
So if you add same component twice, its next would
contain link to itself. Of course the chain can be also
longer than two items (or one item in fact).
Fix is quite easy. Check existance before adding by
going through the chain. Perhaps exception should be
thrown?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1286607&group_id=119783
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop