-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0, 1.4.1, 1.4.2
-
b48
-
generic, x86
-
generic, windows_xp
Name: jk109818 Date: 04/22/2003
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
at JTable class, processKeyBinding method:
delivery of null EventObject at
AbstractCellEditor class, in isCellEditable method
The bug occurs because at line 3279 of the JTable.java file there is call to the editCellAt(int row, int column) instead of editCellAt(int row, int column, EventObject event)
the result is that there can't be any verification of what type of KeyEvent occured (or even if a KeyEvent occured) at any class derived from AbstractCellEditor implementing the isCellEditable(EventObject event) method.
By changing at line 3279 the code from
if (!editCellAt(anchorRow, anchorColumn)) {
at
if (!editCellAt(anchorRow, anchorColumn, e)) {
could solve this bug.
REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 182710)
======================================================================
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
at JTable class, processKeyBinding method:
delivery of null EventObject at
AbstractCellEditor class, in isCellEditable method
The bug occurs because at line 3279 of the JTable.java file there is call to the editCellAt(int row, int column) instead of editCellAt(int row, int column, EventObject event)
the result is that there can't be any verification of what type of KeyEvent occured (or even if a KeyEvent occured) at any class derived from AbstractCellEditor implementing the isCellEditable(EventObject event) method.
By changing at line 3279 the code from
if (!editCellAt(anchorRow, anchorColumn)) {
at
if (!editCellAt(anchorRow, anchorColumn, e)) {
could solve this bug.
REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 182710)
======================================================================
- relates to
-
JDK-6348945 JTable calls AbstractCellEditor.isCellEditable () with null EventObject.
-
- Closed
-