Bug 94867 - [1.5][compiler] Annotation method should tolerate empty array default value
Summary: [1.5][compiler] Annotation method should tolerate empty array default value
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 M7   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-11 18:49 EDT by Philipe Mulet CLA
Modified: 2005-05-12 13:05 EDT (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-05-11 18:49:26 EDT
Build 20050509

The following code should compile clear:
public @interface X {
	Class<? extends Throwable>[] expected() default {};
}
Comment 1 Philipe Mulet CLA 2005-05-11 19:21:32 EDT
Fixed by relaxing generic array initializer rule wrt to JLS9.7 for commensurate
values.
Added AnnotationTest#test141.
Fixed
Comment 2 Olivier Thomann CLA 2005-05-12 13:05:43 EDT
Verified in I20050510-0010 + JDT/Core v_556