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 61112 - Priority of annotations not considered when displayd in editor gutter
Summary: Priority of annotations not considered when displayd in editor gutter
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-19 13:55 UTC by Roman Strobl
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Strobl 2005-07-19 13:55:40 UTC
[NetBeans 20050718-2018; WinXP; JDK 1.5.0_04]

Issue summary:
--------------
Editor gutter merges errors and warnings on a single line into one annotation
displayed in editor gutter. When a warning is found before an error on the same
line, the displayed annotation is a warning. This is incorrect, because errors
have higher priority than warnings and should be displayed instead.

Steps to reproduce:
-------------------
1. Create a new Java class
2. Add on the beginning of the class following code:
z enum e;
3. Warning appears instead of an error in editor gutter
Comment 1 Martin Roskanin 2005-08-23 14:37:23 UTC
I believe this is editor problem. 
The priority of annos is also mentioned at UI spec:
http://ui.netbeans.org/docs/ui/editor/gutter/glyphgutter-foldingbar.html


*** This issue has been marked as a duplicate of 62781 ***
Comment 2 Jan Lahoda 2005-08-25 10:15:41 UTC
This is not a duplicate of issue #62781. This is a bug in the java module's
error collapsing code (the java module show all errors and warnings on one line
as one annotation, see JavaEditor.getAnnotations(List errors)), which does not
prefer the errors over warnings.
Comment 3 Pavel Flaska 2005-10-13 14:16:40 UTC
For described scenario, do not forget to set source level of project to 1.4.
Comment 4 Pavel Flaska 2005-10-13 15:13:00 UTC
/cvs/java/src/org/netbeans/modules/java/JavaEditor.java,v  <--  JavaEditor.java
new revision: 1.202; previous revision: 1.201
done
Comment 5 Roman Strobl 2005-10-14 16:29:27 UTC
Verified.