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.
Hi, When I want to import the projects I'm working on in NB Dev 136 into 142, I get an exception while importing them all at once (see below). When I open the files one by one, there's no problem in importing them. Furthermore, when I open them all at once, not all projects are displayed in the listbox containing all projects, only after closing the dialog and reopening it, the imported projects are displayed. When I import the projects one by one, they all get displayed, right after I import them. Iwan Mon Mar 12 15:22:20 EST 2001java.lang.ClassCastException: org.openide.loaders.DataFolder java.lang.ClassCastException: org.openide.loaders.DataFolder at org.netbeans.modules.projects.ProjectDataObject.createProject (ProjectDataObject.java:84) at org.netbeans.modules.projects.ProjectDataObject.handleCopy (ProjectDataObject.java:139) at org.openide.loaders.DataObject$2.run(DataObject.java:469) at org.openide.filesystems.FileSystem.runAtomicAction (FileSystem.java:371) at org.openide.loaders.DataObject.copy(DataObject.java:467) at org.netbeans.modules.projects.importing.ImportNetbeansProject.run (ImportNetbeansProject.java:151) at org.openide.util.Task.run(Task.java:124) [catch] at org.openide.util.RequestProcessor$ProcessorThread.run (RequestProcessor.java:567)
Created attachment 763 [details] My system\projects directory that's causing the problem
Reproduced on my comp with your projects dir (thanks for the attachment). Working on it.
Fixed in [dev] and [release32]. The fix is rather temporary in ProjectDataObject.createProject. After the real reason of failing to copy the projects is found the added code in ProjectDataObject can be removed. If you spot similar behaviour please reopen or create new bug report. Thanks for the report (especially the attachment was useful).
Verified, not reproducible.
Resolved for 3.4.x or earlier, no new info since then -> closing.