matthiasblaesing opened a new pull request, #6882:
URL: https://github.com/apache/netbeans/pull/6882
With JDK21 validation of removeIndexInterval and addIndexInterval methods
was improved. This reveals an issue in the table model change events, that are
published by the TaskListModel. For example it was observed, that the startRow
and endRow indices were issued in the wrong order.
This results in:
```
java.lang.IndexOutOfBoundsException: index or length is negative
at
java.desktop/javax.swing.DefaultListSelectionModel.insertIndexInterval(DefaultListSelectionModel.java:656)
at java.desktop/javax.swing.JTable.tableRowsInserted(JTable.java:4539)
at java.desktop/javax.swing.JTable.tableChanged(JTable.java:4475)
at
java.desktop/javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:302)
at
java.desktop/javax.swing.table.AbstractTableModel.fireTableRowsInserted(AbstractTableModel.java:237)
at
org.netbeans.modules.tasklist.ui.TaskListModel$1.run(TaskListModel.java:143)
at
java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists