Bug 64159

Summary: [1.5] call to addAll(Collection<? extends T>) incorrectly dissalowed
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: java
Version: 3.0   
Target Milestone: 3.1 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Adam Kiezun CLA 2004-05-26 12:19:19 EDT
cheetah 05
class CellTest7<T>{
	CellTest7<T> _recurse; 
	public List<T> toList(){
		List<T> result = new ArrayList<T>();
		result.addAll(_recurse.toList());
		return result;
	}
}

cheetah is not happy: 
'The method addAll(Collection<? extends T>) in the type List<T> is not 
applicable for the arguments (List<T>)'
Comment 1 Philipe Mulet CLA 2004-06-29 05:37:59 EDT
Type variable equivalence wasn't correctly implemented.
Fixed. Added regression test GenericTypeTest#test212.
Comment 2 Philipe Mulet CLA 2004-06-29 05:40:47 EDT
*** Bug 67243 has been marked as a duplicate of this bug. ***