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 72717 - CloneNotSupportedException thrown during replication
Summary: CloneNotSupportedException thrown during replication
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@guibuilder
Depends on:
Reported: 2006-02-16 10:58 UTC by Jan Stola
Modified: 2008-04-28 11:23 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2006-02-16 10:58:30 UTC
CloneNotSupportedException is thrown when non-Serializable value
of some property is replicated from the model to the view.
We should improved implementation of cloning:

* try to perform field-to-field copy or invoke clone() method
  on objects that implements Cloneable interface
* return the same instance if we are not able to clone the object
  instead of throwing CloneNotSupportedException
Comment 1 Jan Stola 2006-02-16 11:19:54 UTC
Some classes claim to be Serializable, but throw NotSerializableException
while being serialized. This is a clear violation of their contract,
but we should handle these situations better. There's even
a lot of Swing classes that have this problem - they are serializable,
but hold a collection of non-serializable listeners.
Comment 2 Jan Stola 2007-07-16 16:47:26 UTC
This is more an enhancement than a defect. Moreover, this problem wasn't reported by our users recently.