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 6829 - SourceElement is not seriazable
Summary: SourceElement is not seriazable
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC All
: P4 critical (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-06-15 19:02 UTC by Jaroslav Tulach
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
java.lang.ClassCastException (4.82 KB, text/plain)
2000-08-04 17:42 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2000-06-15 19:02:56 UTC
Java source element is not serializable because it serializes reference to some
internal class.

Steps to reproduce:
1. open global property sheet
2. open editor with java source
3. place a cursor into a method body
4. close the IDE or save project

You should get message Property Sheet window cannot be serialized. When run with
netbeans.debug.exceptions=true you should also see that the stacktrace starts in
SourceElementImpl.
Comment 1 Jan Becicka 2000-08-04 17:37:59 UTC
Such like things are happening now, if some .java file, which java module can
not parse, is opened in Editor.

Steps to reproduce:
1. Creat or open in Editor some .java file, which is not correct (has syntax
errors)
2. Close IDE
3. Reopen IDE
4. You'll get "The window Properties of class BlahBlah could not be opened due
to problems with deserialization." Dialog

Exceptions are thrown.
Comment 2 Jan Becicka 2000-08-04 17:42:59 UTC
Created attachment 74 [details]
java.lang.ClassCastException
Comment 3 Svata Dedic 2000-08-08 16:58:59 UTC
The cause was different, the behaviour similar. I was not able to reproduce the
case, but I was able to find a place that could introduce the described bug.
It seems that the key was have the IDE serialize a reference to a field (e.g.
from an opened Properties window) that is, or was, in a declarator with other
fields (like Object a,b,c;)
Comment 4 Jan Becicka 2000-10-09 13:50:59 UTC
[1118] Verified
Comment 5 Quality Engineering 2003-07-01 13:18:06 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.