| Summary: | [introduce parameter object] new method conflicts with existing | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Martin Aeschlimann <martinae> |
| Component: | UI | Assignee: | Karsten Becker <eclipse> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | markus.kell.r |
| Version: | 3.3 | ||
| Target Milestone: | 3.3 RC1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Problem also exists in CMS |
M7 - in the following example use 'Introduce Parameter Object' on 'add(int, int)' - add both parameters to the new class package e; public class A { public int add(int x, int y) { return x + y; } public int add(Object o) { return 0; } public void foo() { add(1, 2); add(null); } } the result is: package e; public class A { public int add(AddParameter parameterObject) { return parameterObject.x + parameterObject.y; } public int add(Object o) { return 0; } public void foo() { add(new AddParameter(1, 2)); add(null); } } - add(null) does not resolve to add(Object) anymore