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.
[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
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 ***
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.
For described scenario, do not forget to set source level of project to 1.4.
/cvs/java/src/org/netbeans/modules/java/JavaEditor.java,v <-- JavaEditor.java new revision: 1.202; previous revision: 1.201 done
Verified.