Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 495877

Summary: Pull Up ignores type parameter bounds
Product: [Eclipse Project] JDT Reporter: Raffi Khatchadourian <raffi.khatchadourian>
Component: UIAssignee: 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

Description Raffi Khatchadourian CLA 2016-06-10 09:12:19 EDT
Before:

package p;

class I<E> {
}

abstract class A<E extends java.util.AbstractList<String>> extends I<E> {
	public void m() {
		E e = null;
		e.add("test");
	}
}

After:

package p;

class I<E> {

	public void m() {
		E e = null;
		e.add("test");
	}
}

abstract class A<E extends java.util.AbstractList<String>> extends I<E> {
}

This results in a compile-time error. No warnings are issued prior to the refactoring taking place.

-- 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
Comment 1 Eclipse Genie CLA 2020-02-06 16:34:18 EST
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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.