Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 198263

Summary: [rename] In-editor 'Rename field' renames getter declared overridden from supertype
Product: [Eclipse Project] JDT Reporter: Henrik Jernevad <henko+eclipse>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: martinae
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Henrik Jernevad CLA 2007-07-30 09:30:37 EDT
Build ID: I20070621-1340

Steps To Reproduce:
1. Create an interface with a method "getFoo".
2. Create a class which:
  * inherits the interface,
  * has a field "foo" with getter "getFoo", and
  * has a field "one" with getter "getOne".
4. Rename field "one" to "two" *using the Rename dialog* (Alt+Shift+R twice) and make sure "Rename getter" is checked.
5. Rename field "foo" to "bar" *using in-editor rename*.

Notice how "getFoo" has been renamed to "getBar" and no longer overrides "getFoo" in the interface.

Renaming fields with getters in this way is not allowed when using the dialog, only in-editor. I assume this is not by design.
Comment 1 Eclipse Genie CLA 2020-03-23 17:06:49 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.