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.
It appears that, when guibuilder loads a bean from a form: 1. constructs the bean 2. set the bean properties 3. duplicates the bean (I do not know why) The problem apears when some beans have references to other beans. In this case, if a bean has a reference to an unloaded (yet) bean, that reference property is first set to NULL and set again to correct value when the referred object is loaded. BUT, in this case the duplication step is done immediately after the first assignment of properties and before the fix-up phase. I have pasted here a log of the operations (baseBlock is the reference property): JSRLov - Setting baseBlock: null () JSRLov - serialized: baseBlock = null () JSRLov - deserialized: baseBlock = null () JSRLov - Setting baseBlock: org.sqlroots.comps.JSRBlock@23293775 (subtipuri_produs sp) The effect of this behaviour becomes a problem when you access the loaded object from a custom property editor. In this case, if ones tries to read the "baseBlock" property this is null (probably, the property editor sees the duplicate instance). So, during loading of a form the "duplication" phase should be after the "fix-up" phase. This would solve the problem - the duplicate object would be identical.
Could you give us a test sample on which we could reproduce the behavior? That would help with evaluation and fixing a lot. Thanks.