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.
Development build #200603270200 of NetBeans 5.5 Fedora Core 3, JDK 1.5.0_05 build #5 Description: ============ For some reason IDE creates META-INF directory when moving class to source root package. See attached screenshot. Steps to reproduce: =================== 1. Invoke "File|New Project..." from main menu. 2. Select "General" category and "Java Application" project type. 3. Push "Next >", then "Finish" buttons. 4. Drag "Main.java" class and drop it on "Source Packages" node. 5. Uncheck "Preview All Changes" option and push "Next >". 6. You will see that "META-INF" node shows up under "Source Packages".
Created attachment 29418 [details] Screenshot of the weird folder created in J2SE project.
This does not belong to refactoring. It is caused by a bug in the J2SE project's implementation of J2SEPersistenceFinder. Partially fixed by the introduction of j2ee/persistenceapi. Now the steps to reproduce are to remove the META-INF folder and restart NetBeans. The folder is recreated during the restart. Martine, since the config files folder handling has been moved to J2SEPersistenceProvider I think it is not necessary anymore to always create the META-INF folder in J2SEPF.getConfigFilesFolder().
*** Issue 75524 has been marked as a duplicate of this issue. ***
*** Issue 75599 has been marked as a duplicate of this issue. ***
Fixed. /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/Attic/J2SEPersistenceFinder.java,v <-- J2SEPersistenceFinder.java; new revision: 1.1.2.7; previous revision: 1.1.2.6
verified NetBeans 5.5Dev 200606020200