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 8935 - Customize of serialized bean failed
Summary: Customize of serialized bean failed
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC All
: P3 normal (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-12-18 13:26 UTC by pzajac
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch to correct bug #8935 (2.08 KB, patch)
2001-07-20 20:33 UTC, Tomas Hurka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2000-12-18 13:26:10 UTC
You have serialized bean in File system.  File Object name of bean contains
dot. ClassNotFoundException thrown after customize bean action. It tries
instantiate class with invalid name. Name of class is the same as fileobject.
If FileObject hasn't dot in name it is instantiated correct class.
Comment 1 Tomas Hurka 2001-01-22 10:32:59 UTC
You cannot have dot in the serialized class filename, according to the SDK
documentation for java.beans.Beans. According to the SDK documentation for
java.beans.Beans. If you use beanName of "x.y", Beans.instantiate would first
try to read a serialized object from the resource "x/y.ser" and if that failed
it would try to load the class "x.y" and create an instance of that class. So
there is no way to load serialized bean from file named x.y.ser . I suggest to
correct this bug by throwing exception if you try to rename serialized bean to
something, which contains a dot. This will prevent user to have bean with
invalid filename. Source modification is attached in the next comment.
Comment 2 Tomas Hurka 2001-01-22 10:36:59 UTC
Created attachment 481 [details]
Proposed patch to correct bug #8935
Comment 3 Tomas Hurka 2001-02-01 17:16:59 UTC
fixed in main trunk
Comment 4 Jan Becicka 2001-02-22 10:30:33 UTC
[010221_2] Verified
Comment 5 Quality Engineering 2003-07-01 13:18:11 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.