Project: JDT
Bug 97507 [refactoring] Introduce factory fails for bounded type parameters
Reported: 2005-05-31 11:01:51 | Status: verified fixed

In RC1. Given class: public class A<T, L extends List<T>> { private L _attribute; A(L list) { _attribute = list; } } Invoke "Introduce Factory" on A. The result is public static <T, L> A<T, L> createA(L list) { return new A<T, L>(list); } The bounds on the type parameters have been lost, so it doesn't compile

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceFactory/Bugzilla/97507/CtorTypeArgBounds.java org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceFactory/Bugzilla/97507/CtorTypeArgBounds_out.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/IntroduceFactoryTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceFactoryRefactoring.java