Project: JDT
Bug 97207 [refactoring] Infer Generic Type Arguments NullPE with missing bindings
Reported: 2005-05-30 06:02:01 | Status: verified fixed

Version: 3.1.0 Build id: I20050527-1300 (RC1) Steps to reproduce: 1.) Have a class like this: public class Main { public void loadSashWeights() { Hashtable<String, I[]> hash = new Hashtable<String, I[]>(); hash.put("Foo", new int[] { 3 }); } } 2.) Run Refactor > Infer Generic Type Arguments Actual Results: Find the attached Error Log Expected Results: - Regards, Ben

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuMethodAndTypeGeneric02/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuMethodAndTypeGeneric02/out/A.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringCoreMessages.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsRefactoring.java