-
Bug
-
Resolution: Fixed
-
P5
-
5.0
-
b36
-
x86
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085084 | emb-9 | Sergey Bylokhov | P5 | Resolved | Fixed | team |
A DESCRIPTION OF THE PROBLEM :
Class: JTable
Method: setModel
2 occurrences of invalid (old) variable name - newModel. Must be changed to dataModel.
Class: JTable
Method: setColumnModel
1 occurrences of invalid (old) variable name - newModel. Must be changed to columnModel.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
/**
* Sets the data model for this table to <code>dataModel</code> and registers
* with it for listener notifications from the new data model.
*
* @param dataModel the new data source for this table
* @exception IllegalArgumentException if <code>dataModel</code> is <code>null</code>
* @see #getModel
* @beaninfo
* bound: true
* description: The model that is the source of the data for this view.
*/
ACTUAL -
/**
* Sets the data model for this table to <code>newModel</code> and registers
* with it for listener notifications from the new data model.
*
* @param dataModel the new data source for this table
* @exception IllegalArgumentException if <code>newModel</code> is <code>null</code>
* @see #getModel
* @beaninfo
* bound: true
* description: The model that is the source of the data for this view.
*/
URL OF FAULTY DOCUMENTATION :
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTable.html
Class: JTable
Method: setModel
2 occurrences of invalid (old) variable name - newModel. Must be changed to dataModel.
Class: JTable
Method: setColumnModel
1 occurrences of invalid (old) variable name - newModel. Must be changed to columnModel.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
/**
* Sets the data model for this table to <code>dataModel</code> and registers
* with it for listener notifications from the new data model.
*
* @param dataModel the new data source for this table
* @exception IllegalArgumentException if <code>dataModel</code> is <code>null</code>
* @see #getModel
* @beaninfo
* bound: true
* description: The model that is the source of the data for this view.
*/
ACTUAL -
/**
* Sets the data model for this table to <code>newModel</code> and registers
* with it for listener notifications from the new data model.
*
* @param dataModel the new data source for this table
* @exception IllegalArgumentException if <code>newModel</code> is <code>null</code>
* @see #getModel
* @beaninfo
* bound: true
* description: The model that is the source of the data for this view.
*/
URL OF FAULTY DOCUMENTATION :
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTable.html
- backported by
-
JDK-8085084 Invalid/old variable name - newModel in setModel method in JTable class
-
- Resolved
-