Bug 69170 - [1.5] no error for new T[0]
Summary: [1.5] no error for new T[0]
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-01 15:46 EDT by Adam Kiezun CLA
Modified: 2005-01-11 11:02 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 Adam Kiezun CLA 2004-07-01 15:46:57 EDT
as per spec this is illegal:
class Cells<T>{
	 Object x= new T[0];
}

yet, 1_5 from 30/06 is ok with it
Comment 1 Philipe Mulet CLA 2004-07-06 07:49:16 EDT
Fixed, was incorrectly letting this one go through. Added regression test 
GenericTypeTest#test226.