Bug 79666

Summary: [1.5][annot] Default value of annotation type member declaration must be assignment compatible with return type
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2004-11-29 10:49:58 EST
The default value must be assignment compatible with the return type of an
annotation type member declaration.

@interface I {
    int id () default 10L; 
}

is invalid, but:

@interface I {
    int id () default (int) 0L; 
}
is ok.
Comment 1 Philipe Mulet CLA 2004-11-29 16:30:21 EST
Added support. 
Added regression test: AnnotationTest#test045.
Fixed
Comment 2 Olivier Thomann CLA 2004-12-14 17:52:18 EST
Verified in 200412140800