Bug 80010

Summary: Annotations on the class are highlighted as if they are errors in the editor
Product: [Eclipse Project] JDT Reporter: Constantine Plotnikov <cap>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.