Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314076 - [rename] Incorrect message while 'Rename' when CU not on Build path
Summary: [rename] Incorrect message while 'Rename' when CU not on Build path
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M2   Edit
Assignee: Deepak Azad CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 314227
  Show dependency tree
 
Reported: 2010-05-24 05:09 EDT by Deepak Azad CLA
Modified: 2010-09-14 07:31 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 Deepak Azad CLA 2010-05-24 05:09:18 EDT
Build I20100520-1744

- New workspace
- Open a Java file placed anywhere on the file system (but is not on build
path)
Use following snippet

package q;
public class B {
    int a;
    void foo() {
        System.out.println();
        System.out.println();
    }
}
- Select field 'a' OR method 'foo'
- From the Menu bar 'Refactor' -> Rename => Dialog saying 'Operation unavailabe on the current selection. Select a field Java project, field, method.... etc' comes up. 

However dialog saying 'the CU is not on the build path' should come up.
Comment 1 Deepak Azad CLA 2010-05-24 05:42:27 EDT
Same behavior as comment 0 when file is in a simple project.
Comment 2 Deepak Azad CLA 2010-05-25 04:54:59 EDT
Same behavior in 3.5.2
Comment 3 Deepak Azad CLA 2010-09-08 04:40:51 EDT
Fixed in HEAD in RenameJavaElementAction and RenameAction.
Comment 4 Raksha Vasisht CLA 2010-09-14 07:31:56 EDT
Verified for 3.7 M2 with I20100913-1800.