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.
1) start a clean projects build 2) Sources - popup menu - new file / folder 3) create Java Packaga "examples" (yes it already exists) => new "HelloWorld_1.java" file is created
This is actually reproducible even in 3.4 :-) JavaPackageIterator first creates the package folder (or all the folders that form package name if needed) and then calls createFromTemplate() to select the folder in the explorer. createFromTemplate on folder copies its contents ;-)
Fixed in the prj40_prototype branch, removing PROJECTS keyword. Leaving open for trunk, since this issue is reproducible even there. You can create java package for an existing folder and if this folder is not empty its contents gets duplicated. Lowering priority to P4. cvs commit -m "#29480 - do not allow creation of an existing package (to avoid duplication of i..." PackagePanel.java (in directory C:\nb\new_projects\sources\java\src\org\netbeans\modules\java\ui\wizard\) Checking in PackagePanel.java; /cvs/java/src/org/netbeans/modules/java/ui/wizard/Attic/PackagePanel.java,v <-- PackagePanel.java new revision: 1.1.2.2; previous revision: 1.1.2.1
So, Pavle, could you merge your fix in main trunk?
It seems that the N.F.T. Wizard impl already checks for existing files in dev trunk.