Bug 87318

Summary: [1.5][compiler] Array.asList(int[]) should be accepted
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Philipe Mulet CLA 2005-03-07 15:08:32 EST
Build 3.1M5a

The following code should be accepted:
import java.util.*;
public class X {
	void foo(int[] intarray) {
		List l = Arrays.asList(intarray);
	}
}
Comment 1 Philipe Mulet CLA 2005-03-07 16:06:05 EST
Fixed inference to unwrap base type arrays.
Added VarargsTest#test026.
Fixed
Comment 2 David Audel CLA 2005-03-31 09:49:21 EST
Verified in I20050330-0500