This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 107899

Summary: Annotation glyph rendering does not respect severity
Product: editor Reporter: Petr Hejl <phejl>
Component: Hints & AnnotationsAssignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: abadea
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Hejl 2007-06-22 21:59:53 UTC
When more than single annotation glyph is rendered, it seems to be the last added annotation glyph visible. For example
overrides annotation glyph (none severity) is rendered over custom annotation glyph (warning severity). I suppose
annotation with higher severity should be the first visible.
Comment 1 Andrei Badea 2007-06-25 10:47:58 UTC
This is probably a defect. Have:

    public class Main implements Callable<Void> {

        public Void call() {
            return null;
        }
    }

The "public Void call()" line is annotated with an overrides annotation. When the "return null" line is removed (I use
Ctrl+E), the "public Void call" line is also annotated with a "missing return statement" error. Sometimes (randomly, it
seems) the overrides annotation takes priority over the error annotation, making it difficult to see what's wrong.
Comment 2 Vitezslav Stejskal 2007-06-26 10:53:00 UTC

*** This issue has been marked as a duplicate of 105808 ***