Bug 77463 - [1.5][annot] Wrong error marker text for type annotation
Summary: [1.5][annot] Wrong error marker text for type annotation
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: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-02 06:51 EST by Erol Koç CLA
Modified: 2004-12-14 12:23 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erol Koç CLA 2004-11-02 06:51:48 EST
Writing a new annotation, a wrong error description is displayed when using
invalid modifiers. For example:

private @interface TestAnnot {
}

leads to the following marker description:
"Illegal modifier for the member annotation type TestAnnot; only public,
protected, private, static & abstract are permitted"

In fact, the compiler only allows public and abstract. The description should
look the same as for the enum type:
"Illegal modifier for the annotation TestAnnot; only public & abstract are
permitted"
Comment 1 Olivier Thomann CLA 2004-11-02 09:19:32 EST
Annotation are not supported yet.
Comment 2 Philipe Mulet CLA 2004-12-02 18:32:57 EST
Error message got corrected.
Comment 3 Philipe Mulet CLA 2004-12-02 18:35:26 EST
Added regression test: AnnotationTest#test076.
Fixed
Comment 4 Olivier Thomann CLA 2004-12-14 12:23:24 EST
Verified in 200412140800