Project: JDT
Bug 92841 Inline Method duplicates generic type arguments list [refactoring][5.0]
Reported: 2005-04-26 18:00:37 | Status: verified fixed

HEAD void use () { Vector<? extends Number> vn = me(); } private Vector<? extends Number> me() { Vector<Integer> vn= new Vector<Integer>(); vn.add(13); return vn; } Inlining me() gives this (generic type arguments lists duplicated): void use () { Vector<Integer><Integer> vn1= new Vector<Integer><Integer>(); vn1.add(13); Vector<? extends Number> vn = vn1; }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/generic_in/TestParameterizedType1.java org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/generic_in/TestParameterizedType2.java org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/generic_out/TestParameterizedType1.java org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/generic_out/TestParameterizedType2.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/InlineMethodTests.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/ImportReferencesCollector.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceProvider.java