Project: JDT
Bug 86471 NPE in infer type arguments
Reported: 2005-02-24 10:13:01 | Status: resolved fixed

package pack; public class Tuple<T1, T2> { private T1 t1; private T2 t2; public Tuple(T1 o1, T2 o2) { t1= o1; t2= o2; } } class Main { public static void main(String[] args) { Tuple t= new Tuple(new String(), new Integer(10)); } }

Files changed in fix:
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/InferTypeArgumentsConstraintsSolver.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/TTypes.java