Community
Participate
Working Groups
Steps to reproduce: 1. Invoke "Introduce Indirection" on 'f' 2. NPE is thrown (see part of the log below) class IntroduceIndirectionBug2 extends C<Integer> { // <<< The type parameter // cannot be Object // Invoke "Introduce Indirection" on 'f' void f(Integer i1) { } } class C<T> { void f(T t1) { } void g() { C.this.f(null); } } (Thanks to Yilong Li for helping with the bug report.) java.lang.NullPointerException at org.eclipse.jdt.internal.corext.refactoring.code.IntroduceIndirectionRefactoring.findMethodBindingInHierarchy(IntroduceIndirectionRefactoring.java:1087) at org.eclipse.jdt.internal.corext.refactoring.code.IntroduceIndirectionRefactoring.checkFinalConditions(IntroduceIndirectionRefactoring.java:549) at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(CheckConditionsOperation.java:85) at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:121) at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:209) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344) at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
The issue is reproducible using I20121210-0800. Looks like the bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=283962 was trying to address the same issue.
*** Bug 283962 has been marked as a duplicate of this bug. ***
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
Still an issue with 4.11 M3.
(In reply to Dani Megert from comment #4) > Still an issue with 4.11 M3. and 4.12 M3.