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

Bug 100086

Summary: [rename] Method overwrite warning when renaming field.
Product: [Eclipse Project] JDT Reporter: David Gates <gatesda>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description David Gates CLA 2005-06-14 17:19:51 EDT
Found in Eclipse 3.1RC2.

When adding only prefixes or suffixes (defined in Code Style) to a field using 
the rename refactoring, if the rename getter or rename setter box is checked, 
then Eclipse says the method already exists.

For example, if "_" is defined as a prefix and you have:

class Foo {
  int bar;
  int getBar() {
    return bar;
  }
}

and you use the rename refactoring to rename "bar" to "_bar" with the rename 
getter box checked, it finds the problem "Method 'int getBar()' already exists 
in 'Foo'".
Comment 1 Dirk Baeumer CLA 2005-06-15 03:24:30 EDT
Unhappz, but not critical for 3.1.
Comment 2 Eclipse Genie CLA 2019-08-31 08:35:18 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.

If you have further information on the current state of the bug, please add it. 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.