Status: New
Owner: ----

New issue 164 by zimmermann.k: PNode#moveToFront change to avoid java.util.ConcurrentModificationException

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:

Piccolo2D Developers Group:

Reply via email to