Bug 80010 - Annotations on the class are highlighted as if they are errors in the editor
Summary: Annotations on the class are highlighted as if they are errors in the editor
Status: VERIFIED DUPLICATE of bug 80014
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-02 09:50 EST by Constantine Plotnikov CLA
Modified: 2004-12-15 13:00 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 Constantine Plotnikov CLA 2004-12-02 09:50:30 EST
I'm using eclipse-SDK-I20041201-win32.zip.

Annotations on the class are highlighted as if they are errors in the editor.
However no error messages in Problems view are displayed. And marker does not
appear in marker bar in the editor. The see on the TestCls2 class in editor.
------------ test/Attr.java ---------------
package test;
import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface Attr {
  public int tst() default -1;
}
------------ test/TestCls2.java ---------------

package test;
@Attr 
public class TestCls2 {
}
Comment 1 Dani Megert CLA 2004-12-02 11:51:34 EST
Annotations are not yet fully supported
Comment 2 Constantine Plotnikov CLA 2004-12-03 04:51:55 EST
I have forgot to add. There is a tooltip of over the text of the attached
annotation. It says "The annotation @Attr must define attribute the <init>".
Comment 3 Olivier Thomann CLA 2004-12-03 16:39:09 EST
Fixed in HEAD.
Close as dup of bug 80014

*** This bug has been marked as a duplicate of 80014 ***
Comment 4 Frederic Fusier CLA 2004-12-15 13:00:10 EST
Verified for 3.1 M4 using build I200412142000.