Bug 99581 - [1.5] Unnecessary cast is required
Summary: [1.5] Unnecessary cast is required
Status: RESOLVED DUPLICATE of bug 99578
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-13 05:29 EDT by shiraishi CLA
Modified: 2005-06-13 06:14 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shiraishi CLA 2005-06-13 05:29:12 EDT
in below case, eclipse reports "Type mismatch: cannot convert from Object to 
bugElement"


public class bugSuper<T extends Object> {
	public T getData(){
		return null;
	}
}

public class bugElement {
}

public class bugClass<T extends testElement> extends testSuper<T>{
}

public class bug{
	public void method(bugClass bc){
		bugElement be = bc.getData();   << here
	}
}
Comment 1 Dani Megert CLA 2005-06-13 06:14:56 EDT

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