[ 
https://issues.apache.org/jira/browse/PIVOT-278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752168#action_12752168
 ] 

Todd Volkert commented on PIVOT-278:
------------------------------------

Reproducible use case:

1) Expand "Location"->"South America" in the editable trees section of the 
kitchen sink demo
2) Click to edit "Africa"
3) Enter something that will get sorted after "South America", like "Zafrica"

Result:

java.lang.IllegalArgumentException: Illegal item modification.
        at org.apache.pivot.collections.ArrayList.update(ArrayList.java:264)
        at 
org.apache.pivot.wtk.TreeView$BranchHandler.clearAndDecrementPaths(TreeView.java:649)
        at 
org.apache.pivot.wtk.TreeView$BranchHandler.itemsRemoved(TreeView.java:467)
        at 
org.apache.pivot.collections.List$ListListenerList.itemsRemoved(List.java:53)
        at org.apache.pivot.wtk.content.TreeBranch.remove(TreeBranch.java:105)
        at 
org.apache.pivot.wtk.content.TreeViewNodeEditor.save(TreeViewNodeEditor.java:289)
        at 
org.apache.pivot.wtk.content.TreeViewNodeEditor$2.keyPressed(TreeViewNodeEditor.java:88)
        at 
org.apache.pivot.wtk.Component$ComponentKeyListenerList.keyPressed(Component.java:555)
        at org.apache.pivot.wtk.Component.keyPressed(Component.java:2616)
        at 
org.apache.pivot.wtk.ApplicationContext$DisplayHost.processKeyEvent(ApplicationContext.java:1207)
        at java.awt.Component.processEvent(Component.java:6125)
        at java.awt.Component.dispatchEventImpl(Component.java:4714)
        at java.awt.Component.dispatchEvent(Component.java:4544)
        at 
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
        at 
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704)
        at 
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969)
        at 
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841)
        at 
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668)
        at java.awt.Component.dispatchEventImpl(Component.java:4586)
        at java.awt.Component.dispatchEvent(Component.java:4544)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
        at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
        at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

After this exception, all hell breaks loose :)

> TreeViewEditor demo in kitchen sink tutorial is broken
> ------------------------------------------------------
>
>                 Key: PIVOT-278
>                 URL: https://issues.apache.org/jira/browse/PIVOT-278
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 1.3
>            Reporter: Todd Volkert
>             Fix For: 1.3
>
>
> The editor is behaving incorrectly in many ways.  Investigation is needed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to