| Summary: | [change method signature] could be smarter about generic types | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Michael Schneider <michschn> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | markus.kell.r |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Build Identifier: I20100129-1300 Assume the following code public class Foo<T> { void foo(List<T> arg) { } } class Bar extends Foo<String> { @Override void foo(List<String> arg) { } } 1) go to Foo#foo and start the change method signature refactoring 2) change the signature to Set<T> 3) click finish observe: the refactoring warns about errors expected: the refactoring should have inferred the generic type String out of Bar and rewrite the method to void foo(Set<String> arg) { Reproducible: Always