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.
[Forte Build 010217 on RedHat 6.2 with JDK 1.3.1-b15] In this build I does't see any project because IDE ignore in .nbattrs file attribute NetBeansAttrAssignedLoader. .nbattrs: ... <fileobject name="Default"> <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.projects.Bundle"/> <attr name="NetBeansAttrAssignedLoader" stringvalue="org.netbeans.modules.projects.ProjectDataLoader"/> </fileobject> ... Example: -------- /* * Main.java * * Created on February 19, 2001, 10:53 AM */ package Package; import org.openide.loaders.DataObject; import org.openide.filesystems.FileObject; import org.openide.TopManager; import java.util.Enumeration; public class Main extends Object { public static void main (String args[]) throws Exception { FileObject fo = TopManager.getDefault ().getRepository ().findResource("/Projects/Default"); DataObject dao = DataObject.find(fo); System.out.println("Data objec class: " + dao.getClass().getName()); System.out.println("NetBeansAttrAssignedLoader: " + fo.getAttribute("NetBeansAttrAssignedLoader")); fo.setAttribute("NetBeansAttrAssignedLoader", "org.netbeans.modules.projects.ProjectDataLoader"); System.out.println("NetBeansAttrAssignedLoader: " + fo.getAttribute("NetBeansAttrAssignedLoader")); System.out.println("FO Attributes: "); Enumeration e = fo.getAttributes(); while (e.hasMoreElements()) { System.out.println(e.nextElement()); } } }
I've attached additional information. BTW, ClassNotFoundException in project module is thrown because the newly created data object has not assigned ProjectDataLoader.
Created attachment 635 [details] ide.log
FYI there is some optimization in MultiFileObject to assume this attr is only set on the delegate which originally produced the file object, assuming that it would not happen that some layer overrides the type of a file specified in another layer. This is important for startup time. Perhaps the optimization is malfunctioning here.
Fixed in main trunk. There was an obvious bug while evaluating 'NetBeansAttrAssignedLoader'.
It seems be fine
Resolved for 3.4.x or earlier, no new info since then -> closing.