Details
-
Bug
-
Resolution: Fixed
-
P4
-
6u31
-
b73
-
x86
-
windows_7
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8021760 | 7u60 | Mikhail Cherkasov | P4 | Resolved | Fixed | b01 |
JDK-8021553 | 7u51 | Mikhail Cherkasov | P4 | Resolved | Fixed | b01 |
JDK-8018757 | 7u45 | Mikhail Cherkasov | P4 | Closed | Fixed | b05 |
JDK-8006571 | 7u40 | Mikhail Cherkasov | P4 | Closed | Fixed | b12 |
JDK-8006414 | 7u25 | Mikhail Cherkasov | P4 | Closed | Fixed | b31 |
JDK-8013636 | 7u21 | Mikhail Cherkasov | P4 | Closed | Fixed | b31 |
JDK-8017394 | 6u65 | Mikhail Cherkasov | P4 | Closed | Fixed | b01 |
JDK-8015187 | 6u60 | Mikhail Cherkasov | P4 | Closed | Fixed | b01 |
JDK-8011663 | 6u51 | Mikhail Cherkasov | P4 | Closed | Fixed | b03 |
JDK-8011597 | 6u45 | Mikhail Cherkasov | P4 | Resolved | Fixed | b31 |
JDK-8006415 | 6u43 | Mikhail Cherkasov | P1 | Closed | Fixed | b31 |
Description
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
This is a fairly straightforward bug where a row index is passed to a method that is expecting a length instead.
In JTable$SortManager.cacheSelection(RowSorterEvent sortEvent, ModelChange change) method, when:
modelSelection.insertIndexInterval(change.startModelIndex,
change.endModelIndex,
true);
The 2nd arg should be: change.endModelIndex - change.startModelIndex + 1
This can be verified with DefaultListSelectionModel.insertIndexInterval method.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
There's no workaround as the JTable$SortManager class is private final.
Attachments
Issue Links
- backported by
-
JDK-8011597 JTable passes row index instead of length when inserts selection interval
- Resolved
-
JDK-8021553 JTable passes row index instead of length when inserts selection interval
- Resolved
-
JDK-8021760 JTable passes row index instead of length when inserts selection interval
- Resolved
-
JDK-8006415 JTable passes row index instead of length when inserts selection interval
- Closed
-
JDK-8006414 JTable passes row index instead of length when inserts selection interval
- Closed
-
JDK-8006571 JTable passes row index instead of length when inserts selection interval
- Closed
-
JDK-8011663 JTable passes row index instead of length when inserts selection interval
- Closed
-
JDK-8013636 JTable passes row index instead of length when inserts selection interval
- Closed
-
JDK-8015187 JTable passes row index instead of length when inserts selection interval
- Closed
-
JDK-8017394 JTable passes row index instead of length when inserts selection interval
- Closed
-
JDK-8018757 JTable passes row index instead of length when inserts selection interval
- Closed