JDK-6177352 : JCK:api/javax_swing/JTable
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-10-12
  • Updated: 2012-03-23
  • Resolved: 2004-11-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b11Fixed
Related Reports
Relates :  
Description
api/javax-swing/JTable tests failed on both b05, b07 - Mustang
JDK            : 1.6.0-b05
JDK            : 1.6.0-b07
JCK            : jck1.5
Platform[s]    : Windows 2000, Solaris10
switch/Mode    : ALL
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Tests   : 

1:    * api/javax_swing/JTable/index.html#getXXX2 : JTable getXXX methods tests 

2:   # api/javax_swing/JTable/index.html#editXXXed : JTable editingCanceled() and editingStopped() tests

Test source location:
=====================

1: /net/jtgb4u4c/export/sail1/testarea/jck1.5.b28/JCK-runtime-15/tests/api/javax_swing/JTable/getXXX2Tests.java

2: /net/jtgb4u4c/export/sail1/testarea/jck1.5.b28/JCK-runtime-15/tests/api/javax_swing/JTable/editXXXedTests.java

jtr file location:
==================
1: /java/sqa/jckreg1/mustang/b05/jck/workDir/api/javax_swing/JTable/index_getXXX2.jtr

2: /java/sqa/jckreg1/mustang/b05/jck/workDir/api/javax_swing/JTable/index_editXXXed.jtr


How to reproduce:
====================
[include the commandline script]
--------Script START---------------------
#!/bin/sh

#Paths
#JDK="/net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/binaries/solaris-sparc"
JDK="/net/koori.sfbay/p/jdk12/jdk/1.6.0/ea/b07/binaries/solaris-sparc"
#JDK="/net/koori.sfbay/p/jdk12/jdk/1.6.0/ea/b07/binaries/windows-i586"
#JDK="/net/koori.sfbay/p/jdk12/jdk/1.6.0/ea/b05/binaries/solaris-sparc"
#JDK="/net/koori.sfbay/p/jdk12/jdk/1.6.0/ea/b05/binaries/windows-i586

#JCK="/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15"

#JDK="/export/jdk/b02/solaris-i586/jdk1.5.0_01"
JCK="/net/jtgb4u4c.sfbay/export/sail1/testarea/jck1.5.b28/JCK-runtime-15"

CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"

#TEST="javasoft.sqe.tests.api.javax.swing.JTable.getXXX2Tests -TestCaseID ALL"
TEST=" javasoft.sqe.tests.api.javax.swing.JTable.editXXXedTests -TestCaseID ALL"

#echo `cat $JCK/build.txt | grep JCK_VERSION` `cat $JCK/build.txt | grep JCK_BUILD`

#$JDK/bin/java -showversion -cp $CLASSPATH $TEST
#$JDK/bin/java -cp $CLASSPATH $TEST
$JDK/bin/java -Xcomp -server -cp $CLASSPATH $TEST
#$JDK/bin/java -server -cp $CLASSPATH $TEST
#$JDK/bin/java -client -cp $CLASSPATH $TEST

...
--------Script END----------------------


Test output:
=============
************************************************************************************
1:TEST="javasoft.sqe.tests.api.javax.swing.JTable.getXXX2Tests
************************************************************************************

java.lang.NullPointerException
        at javax.swing.SwingUtilities.isDescendingFrom(SwingUtilities.java:394)
        at javax.swing.JTable.removeEditor(JTable.java:3999)
        at javax.swing.JTable.editingStopped(JTable.java:3333)
        at javasoft.sqe.tests.api.javax.swing.JTable.getXXX2Tests.JTable2071(getXXX2Tests.java:416)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
        at javasoft.sqe.tests.api.javax.swing.JTable.getXXX2Tests.main(getXXX2Tests.java:77)
JTable2071: Failed. Test case throws exception: java.lang.NullPointerException
java.lang.NullPointerException
        at javax.swing.SwingUtilities.isDescendingFrom(SwingUtilities.java:394)
        at javax.swing.JTable.removeEditor(JTable.java:3999)
        at javax.swing.JTable.editingStopped(JTable.java:3333)
        at javasoft.sqe.tests.api.javax.swing.JTable.getXXX2Tests.JTable2072(getXXX2Tests.java:446)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
        at javasoft.sqe.tests.api.javax.swing.JTable.getXXX2Tests.main(getXXX2Tests.java:77)
JTable2072: Failed. Test case throws exception: java.lang.NullPointerException
java.lang.NullPointerException
        at javax.swing.SwingUtilities.isDescendingFrom(SwingUtilities.java:394)
        at javax.swing.JTable.removeEditor(JTable.java:3999)
        at javax.swing.JTable.editingStopped(JTable.java:3333)
        at javasoft.sqe.tests.api.javax.swing.JTable.getXXX2Tests.JTable2073(getXXX2Tests.java:483)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
        at javasoft.sqe.tests.api.javax.swing.JTable.getXXX2Tests.main(getXXX2Tests.java:77)
JTable2073: Failed. Test case throws exception: java.lang.NullPointerException
java.lang.NullPointerException
        at javax.swing.SwingUtilities.isDescendingFrom(SwingUtilities.java:394)
        at javax.swing.JTable.removeEditor(JTable.java:3999)
        at javax.swing.JTable.editingStopped(JTable.java:3333)
        at javasoft.sqe.tests.api.javax.swing.JTable.getXXX2Tests.JTable2084(getXXX2Tests.java:763)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
        at javasoft.sqe.tests.api.javax.swing.JTable.getXXX2Tests.main(getXXX2Tests.java:77)
JTable2084: Failed. Test case throws exception: java.lang.NullPointerException
====== JTable2063 ====== public AccessibleContext getAccessibleContext()
====== JTable2064 ====== public boolean getAutoCreateColumnsFromModel()
====== JTable2065 ====== public boolean getCellEditor(int row,int column)
====== JTable2066 ====== public boolean getCellRect(int row,int column,boolean incSp)
====== JTable2067 ====== public boolean getCellSelectionEnabled()
====== JTable2068 ====== public TableCellEditor getDefaultEditor(Class class)
====== JTable2069 ====== public TableCellRenderer getDefaultRenderer(Class class)
====== JTable2070 ====== public boolean setDragEnabled(boolean enabled)
====== JTable2071 ====== public int getEditingColumn()
====== JTable2072 ====== public int getEditingRow()
====== JTable2073 ====== public Component getEditorComponent()
====== JTable2074 ====== public Color setGridColor()
Correctly thrown IAE on null parameter
====== JTable2075 ====== public int getRowMargin()
====== JTable2076 ====== public boolean getScrollableTracksViewportWidth()
====== JTable2077 ====== public boolean getShowHorizontalLines()
====== JTable2078 ====== public boolean getShowVerticalLines()
====== JTable2079 ====== public void initializeLocalVars()
====== JTable2080 ====== public boolean isCellEditable(int row, int column)
====== JTable2081 ====== public boolean isCellSelected(int row, int column)
====== JTable2082 ====== public boolean isColumnSelected(int index)
====== JTable2083 ====== public boolean isRowSelected(int index)
====== JTable2084 ====== public boolean isEditing()
STATUS:Failed.test cases: 22; passed: 18; failed: 4; first test case failure: JTable2071



************************************************************************************
2:TEST=" javasoft.sqe.tests.api.javax.swing.JTable.editXXXedTests "
*************************************************************************************
java.lang.NullPointerException
        at javax.swing.SwingUtilities.isDescendingFrom(SwingUtilities.java:394)
        at javax.swing.JTable.removeEditor(JTable.java:3999)
        at javax.swing.JTable.editingCanceled(JTable.java:3348)
        at javasoft.sqe.tests.api.javax.swing.JTable.editXXXedTests.JTable2061(editXXXedTests.java:46)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
        at javasoft.sqe.tests.api.javax.swing.JTable.editXXXedTests.main(editXXXedTests.java:29)
JTable2061: Failed. Test case throws exception: java.lang.NullPointerException
java.lang.NullPointerException
        at javax.swing.SwingUtilities.isDescendingFrom(SwingUtilities.java:394)
        at javax.swing.JTable.removeEditor(JTable.java:3999)
        at javax.swing.JTable.editingStopped(JTable.java:3333)
        at javasoft.sqe.tests.api.javax.swing.JTable.editXXXedTests.JTable2062(editXXXedTests.java:70)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
        at javasoft.sqe.tests.api.javax.swing.JTable.editXXXedTests.main(editXXXedTests.java:29)
JTable2062: Failed. Test case throws exception: java.lang.NullPointerException
====== JTable2061 ====== public void editingCanceled(ChangeEvent e)
====== JTable2062 ====== public void editingStopped(ChangeEvent e)
STATUS:Failed.test cases: 2; all failed; first test case failure: JTable2061


Specific Machine Info:
=====================
jtg-s111% uname -a
SunOS jtg-s111 5.10 s10_67 sun4u sparc SUNW,Ultra-60


Windows:

$ uname -a
Windows_NT ANTICLINE 5 00 586
###@###.### 10/12/04 00:03 GMT

Comments
EVALUATION Introduced by fix to 4887999. ###@###.### 10/12/04 16:44 GMT Agreed. fix #4887999 examines getFocusOwner() but under JCK getFocusOwner() returns null and NLP exception is thrown ###@###.### 10/15/04 16:42 GMT
12-10-2004