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.

Bug 74032 - Weird META-INF folder created when refactoring J2SE project
Summary: Weird META-INF folder created when refactoring J2SE project
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Adamek
URL:
Keywords: REGRESSION, SIMPLEFIX
: 75524 75599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-27 13:10 UTC by Jiri Kovalsky
Modified: 2006-06-02 10:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the weird folder created in J2SE project. (71.47 KB, image/png)
2006-03-27 13:11 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2006-03-27 13:10:27 UTC
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".
Comment 1 Jiri Kovalsky 2006-03-27 13:11:27 UTC
Created attachment 29418 [details]
Screenshot of the weird folder created in J2SE project.
Comment 2 Andrei Badea 2006-04-15 00:15:51 UTC
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().
Comment 3 Andrei Badea 2006-05-04 14:13:53 UTC
*** Issue 75524 has been marked as a duplicate of this issue. ***
Comment 4 Andrei Badea 2006-05-10 09:45:08 UTC
*** Issue 75599 has been marked as a duplicate of this issue. ***
Comment 5 Martin Adamek 2006-05-10 15:16:09 UTC
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
Comment 6 Jindrich Sedek 2006-06-02 10:40:28 UTC
verified NetBeans 5.5Dev 200606020200