This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 47455 - Serialization of PrintOptions fails
Summary: Serialization of PrintOptions fails
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-19 12:13 UTC by Martin Roskanin
Modified: 2008-12-22 23:27 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Roskanin 2004-08-19 12:13:29 UTC
Because of:

Serializable class java.awt.geom.AffineTransform
does not declare serialVersionUID field. Encountere
d while storing:
[org.openide.util.SharedClassObject$WriteReplace,
org.openide.text.PrintSettings, o
rg.openide.options.ContextSystemOption,
org.openide.options.SystemOption,
org.openide.util.SharedCla
ssObject, java.lang.Integer, java.lang.Number,
java.lang.Boolean, java.awt.Font, java.util.Hashtable
, java.awt.font.TextAttribute,
java.text.AttributedCharacterIterator$Attribute,
java.awt.font.Transf
ormAttribute] See also
http://www.netbeans.org/issues/show_bug.cgi?id=19915


Similar problem as in issue #21781

How to reproduce:
Tools/Options/Ide Configuration/System/Print
Settings/HTML Editor/ change the color in the
customizer for i.e. default Syntax
Comment 1 David Konecny 2004-08-19 12:56:05 UTC
It is just a warning and looking at AffineTransform class it has
readObject/writeObject so it should be OK. So perhaps it is false
alarm in this case?

Other option is not to use such a class and store values as some
simpler type.

Passing to editor package owner. Was the PrintOption changed in this
version?
Comment 2 Petr Nejedly 2004-08-19 13:35:46 UTC
PrintSettings were not semantically touched for about two years.
They are not storing the affine transform themselves, it is a "field"
of a java.awt.Font
Comment 3 David Konecny 2004-08-19 13:38:32 UTC
I thought so. Any idea what to do about that? Should the warning be
suppressed when readObject/WriteObject methods exist? 
Comment 4 Jaroslav Tulach 2004-09-14 08:36:04 UTC
imho fire a bug to JDK about AffineTransform missing serialVersionUID
and add it to the list of known classes without it in org.openide.util.io.
Comment 5 Martin Roskanin 2004-10-18 10:22:31 UTC
*** Issue 49966 has been marked as a duplicate of this issue. ***
Comment 6 Martin Roskanin 2004-10-18 10:24:09 UTC
in accordance with issue #49966 raising priority to P2
Comment 7 Petr Nejedly 2004-10-18 10:34:04 UTC
Not related to issue 49966 at all.
Comment 8 Petr Nejedly 2005-05-04 15:48:23 UTC
Not reporting AffineTransform anymore.
openide/util/src/org/openide/util/io/NbObjectOutputStream.java,v1.2