| Summary: | RippleMethodFinder should error when renaming binary method [refactoring] | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.0 | ||
| Target Milestone: | 3.1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Markus, should be considered by the new ripple method finder we have to implement using bindings. |
In the code below, rename IRun#run() to 'run2'. Was: no warning, all occurrences of method name 'run' renamed to 'run2'. Expected: (non-fatal) error that warns of compile errors, since binary type 'Runnable' was found in the ripple. Then, only rename references to non-binary ripple methods. Especially things like 'r.run();' should not be touched. interface IRun { public void run(); } class R implements IRun, Runnable { public void run() { } } class Usage { { new R().run(); Runnable r= new R(); r.run(); IRun ir= new R(); ir.run(); } }