| Summary: | [rename] Method overwrite warning when renaming field. | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | David Gates <gatesda> |
| Component: | UI | Assignee: | 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 | ||
Unhappz, but not critical for 3.1. 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. |
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'".