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.
Summary: | New wizard says file already exists even if it's not true | ||
---|---|---|---|
Product: | platform | Reporter: | sermetyucel <sermetyucel> |
Component: | Dialogs&Wizards | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | jchalupa, mmirilovic, tpavek, ttran |
Priority: | P1 | Keywords: | REGRESSION, SIMPLEFIX |
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | patch applied in maintrunk |
Description
sermetyucel
2004-03-24 15:47:12 UTC
See also a separate thread on NBusers on the same issue. I can also reproduce this. http://www.netbeans.org/servlets/ReadMsg?msgId=721074&listName=nbusers Raised priority to P2, since this will be highly visible and should be fixed for the release. Reassigning to openide. As already mentioned on nbusers: For example I have a build script "src/testsuite/build.xml". When I try to create an other build script "src/build.xml" NB says "The file build.xml already exists." This problem occurs with any file type, folders and packages. However, I can first create a file (e.g. build1.xml) and then rename it. Template Wizard issue. It's regression of issue 33612, a workaround committed in 04/02/03. Problem: FileObject.getChildren() is called with true (e.g. recursive to subfolders) instead of false (e.g. only direct level). Created attachment 14170 [details]
patch applied in maintrunk
Diagnosis: This defect appears in only on Windows. If any folder has a subfolder with an object, say MyMain.java. E.g. I have <mounted root>/myClasses/test/MyMain.java. If I want to add new object (by TemplateWizard) to folder myClasses with same name MyMain.java, then TemplateWizard scans *all* subfolders for this file and succeeds. It's the problem. The fix restricts scanning only on first level, e.g. only direct children of myClasses folder. Right and safe fix. Looks OK and safe. Fix backported to release36 branch. verified in nb36 RC2. It works as it should now. |