classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: JTree infinite recursion fix.


From: Lillian Angel
Subject: [cp-patches] Patch: JTree infinite recursion fix.
Date: Mon, 14 Nov 2005 15:39:43 -0500

Fixes bug #24802. Prevents any sort of recursion when a node is its own
parent. The Swing "Genealogy" demo now works well.
http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/

2005-11-14  Lillian Angel  <address@hidden>

        * javax/swing/JTree.java
        (expandPath): No need to get the parent path.
        * javax/swing/event/TreeModelEvent.java:
        Variables should be initialized to null.
        (toString): Implemented.
        * javax/swing/plaf/basic/BasicTreeUI.java
        (treeStructureChanged): Implemented.
        (getParent): Added check to avoid infinite loop.
        (findNode): Fixed check to use getChild, instead of
        getIndexOfChild.
        (updateCurrentVisiblePath): Added a loop to check
        the parent's sibling, if the current node has no
        other siblings.

Attachment: patch.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]