Project: JDT
Bug 137474 NPE in MethodOverrideTester.hasCompatibleTypeParameters when overriding generic method
Reported: 2006-04-19 06:32:02 | Status: resolved fixed

build I20060418-0010 1) create the following classes public class A { public <T1, T2> void foo() {} } class B extends A { public <U1,> void foo() {} } 2) type a 'U' character after 'public <U1,' an NPE occur java.lang.NullPointerException at org.eclipse.jdt.internal.corext.util.MethodOverrideTester.hasCompatibleTypeParameters(MethodOverrideTester.java:248) at org.eclipse.jdt.internal.corext.util.MethodOverrideTester.isSubsignature(MethodOverrideTester.java:229) at org.eclipse.jdt.internal.corext.util.MethodOverrideTester.findOverriddenMethodInType(MethodOverrideTester.java:186) at org.eclipse.jdt.internal.corext.util.MethodOverrideTester.findOverriddenMethodInHierarchy(MethodOverrideTester.java:152) at org.eclipse.jdt.internal.corext.util.MethodOverrideTester.findOverriddenMethod(MethodOverrideTester.java:124) at org.eclipse.jdt.ui.actions.OpenSuperImplementationAction.findSuperImplementation(OpenSuperImplementationAction.java:171) at org.eclipse.jdt.ui.actions.OpenSuperImplementationAction.checkMethod(OpenSuperImplementationAction.java:191) at org.eclipse.jdt.ui.actions.OpenSuperImplementationAction.selectionChanged(OpenSuperImplementationAction.java:117) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged(SelectionDispatchAction.java:255) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged(SelectionDispatchAction.java:250) at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/MethodOverrideTester.java