Bug 80114

Summary: [1.5][Regression] Annotation type cannot have constructors
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
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-12-03 10:48:15 EST
Using latest, we allow annotation types to have constructors. This is illegal.

Test case.

@interface X {
    X() {
        new Object();
    }
}
Comment 1 Olivier Thomann CLA 2004-12-03 11:37:23 EST
Fixed and released in HEAD.
Regression test added in AnnotationTest.test0078.
Comment 2 Frederic Fusier CLA 2004-12-15 13:04:29 EST
Verified for 3.1 M4 using build I200412142000.