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.
Copied from mail I think I had a similar problem with List in systemoptions. What seemed to fix the problem for me, was to firePropertyChanged afte the putProperty method... Milos Petr Suchomel wrote: >I have r/w property in SystemOption, which type is HashMap. >This type seem not to be serialized any more, although if map == null I do >reinit, after restart of NB, when I ask for value, this value is again null. >(This is only test example) > > public java.util.HashMap getFileSystemSettings(){ > java.util.HashMap map = >java.util.HashMap)getProperty( PROP_FS_SETTING ); > if( map != null ){ > System.err.println("Getting map size " + map.size()); > } > else{ > System.err.println("Getting map size null"); > map = new java.util.HashMap(); > map.put("test", "test"); > setFileSystemSettings( map ); > } > return map; > } > > public void setFileSystemSettings(java.util.HashMap map){ > putProperty( PROP_FS_SETTING, map, true ); > } > >Petr >
Passing to Ales, if he will take it.
Created attachment 2768 [details] a test case that demonstrate this
Since the submitter have not entered more information, I suspect (after exploring SystemOption.writeExternal()) that PROP_FS_SETTING is not present in PropertyDescriptors of related BeanInfo.
Resolved for 3.4.x or earlier, no new info since then -> verified.
Resolved for 3.4.x or earlier, no new info since then -> closing.