Project: JDT
Bug 86484 Infer type arguments doesn't consider autoboxing
Reported: 2005-02-24 10:48:05 | Status: resolved fixed

package pack; public class Tuple<T1, T2> { private T1 t1; private T2 t2; public void setT1(T1 o1) { t1= o1; } public void setT2(T2 o2) { t2= o2; } } class Main { public static void main(String[] args) { Tuple t= new Tuple(); t.setT1("Eclipse"); t.setT2(10); } } It works if I write new Integer(10)

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuBoxing01/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuBoxing01/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuBoxing02/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuBoxing02/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuConstructor01/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuConstructor01/out/A.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/InferTypeArgumentsTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsConstraintCreator.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsTCModel.java org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/InferTypeArgumentsWizard.java