https://glazedlists.dev.java.net/issues/show_bug.cgi?id=479User brands changed the following:
What |Old value |New value
================================================================================
Target milestone|milestone 1 |1.9.0
--------------------------------------------------------------------------------
------- Additional comments from
brands@... Sun Jun 7 20:34:47 +0000 2009 -------
some more info:
Here is a thread dump for SortedList.setComparator(..)
produced with the sample app:
SortedList.setComparator(): null
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1158)
at ca.odell.glazedlists.SortedList.setComparator(SortedList.java:435)
at
ca.odell.glazedlists.swing.EventListJXTableSorting$EventListSortController.setSortKeys(EventListJXTableSorting.java:214)
at org.jdesktop.swingx.JXTable.setFilters(JXTable.java:1733)
at
ca.odell.glazedlists.swing.EventListJXTableSorting.<init>(EventListJXTableSorting.java:92)
at
ca.odell.glazedlists.swing.EventListJXTableSorting.install(EventListJXTableSorting.java:100)
at JXTableSorting.<init>(JXTableSorting.java:48)
at JXTableSorting$3.run(JXTableSorting.java:117)
...
EventListJXTableSorting.install(...) installs a new FilterPipeline on JXTable
to provide its own SortController (JXTable.setFilters(...)).
JXTable calls back into the new SorController to set the sort keys of the old
SortController, which appear to be null or empty in this case.
The EventListSortController tries to build a comparator from the sort keys,
see EventListSortController.setSortKeys(...)
If there are no sort keys, it sets the comparator of the SortedList to null.
This is what happens in the example app.
One thing we could do is to memorize the comparator of the SortedList at the
time EventListJXTableSorting.install(...) is called and restore this comparator
instead of null when EventListSortController.setSortKeys(...) is called with no
sort keys.
---------------------------------------------------------------------
To unsubscribe, e-mail:
issues-unsubscribe@...
For additional commands, e-mail:
issues-help@...