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 254986 - Error Flags remain even after bad code is deleted
Summary: Error Flags remain even after bad code is deleted
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 8.1
Hardware: PC Windows 8.1
: P3 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2015-09-03 20:01 UTC by bolsover
Modified: 2015-10-14 10:46 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Error flags (129.74 KB, image/jpeg)
2015-09-03 20:01 UTC, bolsover
Messages.log (532.94 KB, text/plain)
2015-09-04 10:35 UTC, bolsover

Note You need to log in before you can comment on or make changes to this bug.
Description bolsover 2015-09-03 20:01:05 UTC
Created attachment 155879 [details]
Error flags

Product Version: NetBeans IDE Dev (Build 201509010002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 8.1 version 6.3 running on amd64; Cp1252; en_GB (nb)

Error flag illustrated was originally shown after I wrote some bad code.

The offending code was deleted but the error flag remains even after a successful compile.

The cause of the original error is shown in the attached screen grab.
Comment 1 bolsover 2015-09-03 20:02:58 UTC
Update - Error flag is cleared after close/reopen of NB.
Comment 2 Milutin Kristofic 2015-09-04 08:50:38 UTC
Can you reproduce this behavior? Could you attach messages.log? Thank you
Comment 3 bolsover 2015-09-04 10:35:32 UTC
Created attachment 155897 [details]
Comment 4 bolsover 2015-09-04 10:36:33 UTC
I've not bee able to reproduce yet but will post again here if/when I get the problem again.
Comment 5 Milutin Kristofic 2015-09-04 12:05:43 UTC
I checked messages.log, there are other errors and infos, but nothing from annotation (error) flags. I know it is annoying, but I need reproducible steps. Maybe it is because javafx, maybe editor didn't notify others. However, since there are no reproducible steps, I will decrease priority to P3.
Comment 6 mperezma 2015-10-13 09:03:40 UTC
It's easy to reproduce for me: simply create a java project with this code:

public class JavaApplication {
    public static void main(String[] args) throws InterruptedException {
        while (true) {

Run the project inside the IDE and while it is executing, no updates occurs in project view (at least error bubbles). For example, introduce some syntax error in this source (like change "class" by "classs"), save the file and the project view will not show the file with error until you stop the execution..
Comment 7 Jiri Prox 2015-10-13 10:31:40 UTC
I can reproduce the problem with error badges while project is running (they are refreshed after stopping the run). But I'm afraid it is not the original reported problem
Comment 8 mperezma 2015-10-13 14:39:24 UTC
Thank you Jiri, I've opened a separate case for my problem issue #255901