[JIRA] (GLAZEDLISTS-573) Unexpected behavior when unselected row is unselected
cwhite15 created GLAZEDLISTS-573:
Summary: Unexpected behavior when unselected row is unselected
URL: https://java.net/jira/browse/GLAZEDLISTS-573 Project: glazedlists
Issue Type: Bug
Affects Versions: 1.9.0
Environment: Java 7u51 64 bit
Windows 7 64 bit
I'm seeing some unexpected behavior from ListSelection.java when I unselect a row that's already unselected. The anchor and lead selection is changed incorrectly, and an unnecessary ListSelectionEvent is fired.
# I'm using a JXTable with Glazed Lists.
# Click on row n to select it.
# Click on row n+1 to select it. Row n is unselected.
# Call AdvancedListSelectionModel.removeSelectionInterval(n, n).
# Debug through to ListSelection.deselect(). Notice that anchorSelectionIndex and leadSelectionIndex are updated to n+1.
# Debug through to the end of setSubRangeOfRange(). fireSelectionChanged is called even though the selection should not have changed.
This message was sent by Atlassian JIRA