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.
I am working on issue 21676 and I have run the IDE with this patch http://www.netbeans.org/issues/showattachment.cgi?attach_id=5081 and the arguments described there. I have found out that following class is being loaded into the system on startup. Please investigate why and prevent that to happen. Thanks. org.netbeans.modules.url.BookmarksNode
Fixed in main trunk.
Ok, Libor can you tell me what was wrong, I am searching for all ways that may initialize a module class...
Created attachment 5284 [details] CVS commit report.
See attached CVS commit report. Essentially I changed .instance with .settings.
I do not think that replacing .instance with .settings is the best solution. Processing of .settings takes more time then .instance. Please continue to use .instance, you can probably use: <file name="BookmarkNode.instance"> <attr name="instanceClass" stringvalue="org.openide.nodes.Node" /> <attr name="instanceCreate" newvalue="org.netbeans.modules.url.BookmarkNode" /> </file> which should work the same and not load the class at startup.
OK, I will revert it to .instance file. But when you filed this bug I think you should write "'Do not load classes on startup' bug-fixing guidelines" because I fixed this bug by .settings files. And if you do not recommend it, you should publish tips, how to correctly fix it. Thanks.
Created attachment 5291 [details] Used .instance files with "instanceOf" attribute name assigned.
Jardo, I used your proposed solution again by .instance file. I have extended it with instanceOf attribute name which is necessary: <attr name="instanceOf" stringvalue="org.openide.nodes.Node, org.openide.nodes.AbstractNode, org.openide.loaders.DataNode, org.openide.loaders.DataFolder$FolderNode, org.netbeans.modules.url.BookmarksNode" /> Is it right now?
Seems like BookmarkNode is gone. Other possible trick is to write <attr name="instanceClass" stringvalue="org.openide.nodes.Node" /> then you might skip the instanceOf attribute.
Resolved for 3.4.x or earlier, no new info since then -> closing.