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.
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.
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.
Created attachment 74 [details] java.lang.ClassCastException
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;)
[1118] Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.