History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-28436
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Dmitry Jemerov
Reporter: Nikolay Chashnikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

"Change Method Signature" quickfix substitutes generic types in parameters of method

Created: 22 Jul 08 10:00   Updated: 06 Nov 08 22:57
Component/s: Refactoring
Fix Version/s: Undefined

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
In the following code IDEA correctly highlight "set" method call but the suggested quickfix will replace "List<T>" parameter type with "List<Integer>" so "set" method will be broken.
import java.util.List;

public class X<T> {
    private List<T> myList;

    public void set(List<T> list) {
        myList = list;
    }

    public static void aa() {
        X<Integer> x = new X<Integer>();
        x.set(null, "aaa");
    }
}


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.