This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 205905 - [rename] Rename package to non-java folder
Summary: [rename] Rename package to non-java folder
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 08:38 EDT by Tomasz Zarna CLA
Modified: 2007-10-11 03:47 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Zarna CLA 2007-10-10 08:38:47 EDT
Build ID:  N20071008-0010

Steps To Reproduce:
1. Create a Java project
2. Create a package named "test_1"
3. Try to rename the package to "test-1"
=> You will be informed that "test-1" is an invalid Java identifier - you can't use it as a package name. 

The "test_1" is not supposed to be a real package, it's just a sub-folder of "src". Even though there are no classes in it I'm not allowed to change it's name in the Package Explorer. I need to rename it outside Eclipse. 

I'm not sure if this is Resources or JDT issue. Please feel free to readdress it if needed.
Comment 1 Szymon Brandys CLA 2007-10-10 12:49:45 EDT
Hi Tom. 

By the way you don't have to rename the folder from outside of Eclipse. You can just use Resource Navigator. It should work.
Comment 2 Martin Aeschlimann CLA 2007-10-11 03:47:44 EDT
The workaround suggested by Szymon is good enough.
No plans to add extra options to the rename package dialog.