Bug 67243 - [1.5]Class<R extends Interface<R>> and <? extends R>getInt() Mismatch
Summary: [1.5]Class<R extends Interface<R>> and <? extends R>getInt() Mismatch
Status: RESOLVED DUPLICATE of bug 64159
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-15 10:44 EDT by Karsten Becker CLA
Modified: 2005-01-11 11:02 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Becker CLA 2004-06-15 10:44:33 EDT
Try this Code:
class CompTest<R,T extends Comparable<T>>{
	T test;
	public Comparable<? extends T> getThis(){
		return test;
	}
}
Message is:
Type mismatch: cannot convert from T to Comparable<? extends T>
Comment 1 Philipe Mulet CLA 2004-06-29 05:40:47 EDT

*** This bug has been marked as a duplicate of 64159 ***