Bug 80114 - [1.5][Regression] Annotation type cannot have constructors
Summary: [1.5][Regression] Annotation type cannot have constructors
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 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-03 10:48 EST by Olivier Thomann CLA
Modified: 2004-12-15 13:04 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 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.