Bug 87318 - [1.5][compiler] Array.asList(int[]) should be accepted
Summary: [1.5][compiler] Array.asList(int[]) should be accepted
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-07 15:08 EST by Philipe Mulet CLA
Modified: 2005-03-31 09:49 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 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