Bug 94867

Summary: [1.5][compiler] Annotation method should tolerate empty array default value
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 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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