United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6768387 REGRESSION: JTable no longer serializable
6768387 : REGRESSION: JTable no longer serializable

Details
Type:
Bug
Submit Date:
2008-11-06
Status:
Resolved
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2008-12-03
Component:
client-libs
OS:
solaris_2.5.1,generic
Sub-Component:
javax.swing
CPU:
sparc,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10,7
Fixed Versions:
6u12

Related Reports
Backport:
Relates:

Sub Tasks

Description
Instances of JTable that use DefaultTableCellRenderer are no longer serializable as of 6u10. The reason is the new field DefaultTableCellHeaderRenderer.emptyIcon, which is set to an instance of the private inner class EmptyIcon. EmptyIcon is not serializable.

This problem was found by a user who returns objects of type JPanel from JMX methods in their application. Invoking the method from JConsole causes the panel to be displayed in a JConsole dialog when the method is invoked. That doesn't work any more if the JPanel contains a JTable.

                                    

Comments
EVALUATION

This is a regression of #6595814
EmptyIcon should be made serializable
                                     
2008-11-10



Hardware and Software, Engineered to Work Together