Status: New
Owner: ----
New issue 164 by zimmermann.k: PNode#moveToFront change to avoid
java.util.ConcurrentModificationException
http://code.google.com/p/piccolo2d/issues/detail?id=164
If any code loop through the children, nobody can call child#moveToFront.
If it is possible, I wish that you change the method like this:
public void moveToFront() {
PNode p = parent;
if (p != null) {
int i = p.indexOfChild(this);
int j = p.getChildrenCount()-1;
Collections.swap(p.getChildrenReference(), i, j);
}
}
I hope it does the same.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en