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.
When creating a file with the New File Wizard, the wizard checks whether the file already exists on disk and doesn't allow the user to continue if it does. This check fails for files without an extension. ProjectUtilities.canUseFileName(...) checks only whether the suffix is != null where it probably also should check whether is not empty: 303: if (extension != null) vs. 303: if (extension != null && extension.length () > 0) FileObject.getExt() returns "" for files without an extension. This worked in 4.1.
Not a high priority; this code is only used if you do not supply a custom wizard iterator. If you do, the logic is entirely up to you. So simple workaround is to make your own iterator.
Try adding a folder (New File/Folder...| Other | Folder) to *any* project and you will run into this bug. It is not only CND's makefiles that have this problem.
I guess Thomas' last comment referred to the fact that the NF wiz does not prevent you from adding a folder with the same name as an existing folder. But this is more like a P5 bug since even if you Finish, nothing is harmed; you cannot "overwrite" a folder.
making it a p2 and a candiadte for backport to release55-mars
see also http://www.netbeans.org/issues/show_bug.cgi?id=88336
*** Issue 88336 has been marked as a duplicate of this issue. ***
marked issue with SSX3 making it a candicate to be bacported to mars/5.5.1 branch.
seems to have been fixed by vsejskal on Nov 23 in the same way as the reporter suggests. closing as fixed.
Great it has been fixed in trunk, but please backport the fix to 5.5.1.
Created attachment 37223 [details] patch for 5.5.1
patch is OK
merged into release551 branch
verified in NB 5.5.1 Beta