| Summary: | PullUp pulls up a method referencing a type variable that is not present in the super class | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Raffi Khatchadourian <raffi.khatchadourian> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | raffi.khatchadourian |
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X | ||
| Whiteboard: | stalebug | ||
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. |
PullUp pulls up a method referencing a type variable that is not present in the super class. This results in a compile-time error after the refactoring. There is no warning issued. Before: package p; class I { } abstract class A<E> extends I { public void m() { E e = null; } } After: package p; class I { public void m() { E e = null; } } abstract class A<E> extends I { } E is not bound to any existing type variable. -- Configuration Details -- Product: Eclipse 4.5.2.20160218-0600 (org.eclipse.epp.package.committers.product) Installed Features: org.eclipse.jdt 3.11.2.v20160212-1500