Bug 308936

Summary: Unable to refactor reference of field variables in an Interface
Product: [Eclipse Project] JDT Reporter: Marimuthu Ponnambalam <marimuthupg.forum>
Component: CoreAssignee: Satyam Kandula <satyam.kandula>
Status: VERIFIED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: satyam.kandula
Version: 3.6   
Target Milestone: 3.6 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Marimuthu Ponnambalam CLA 2010-04-12 17:17:42 EDT
Build Identifier: 20100204-0846

Changing the name of a variable in an interface to refactor its references in other classes are not available.

An option Like Change method signature to refactor variables in an interface would be huge productivity gain.

Also refactoring references of public variables in a class/interface would also be more appropriate in many cases.

Reproducible: Always

Steps to Reproduce:
1. Create a static variable in a class A
2. Use the static variable in class B
3. Retry to refactor it, there is no way refactor its references in class B
Comment 1 Satyam Kandula CLA 2010-04-13 00:46:00 EDT
Selecting the variable and clicking on Refactor->Rename should work in this particular case. Make sure that you do an enter after you give the new name. If that doesn't work, please give the testcase.
Comment 2 Marimuthu Ponnambalam CLA 2010-04-20 17:48:48 EDT
Worked as suggested. But not initutive as first fast glimpse.
Comment 3 Frederic Fusier CLA 2010-04-26 13:07:42 EDT
Verified for 3.6M7