Bug 64159 - [1.5] call to addAll(Collection<? extends T>) incorrectly dissalowed
Summary: [1.5] call to addAll(Collection<? extends T>) incorrectly dissalowed
Status: RESOLVED FIXED
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: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 67243 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-26 12:19 EDT by Adam Kiezun CLA
Modified: 2005-01-11 11:02 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***