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 86669

Summary: Error annotation not removed
Product: java Reporter: Jiri Prox <jiriprox>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: REOPENED ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 87136    
Attachments: screenshot

Description Jiri Prox 2006-10-06 12:36:54 UTC
NetBeans IDE Dev (Build 061006)
1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b02
Windows XP version 5.1 running on x86
en_US (nb); Cp1252

Error annontation is kept in editor, although the related error was removed.

Steps to reproduce:
1) create new class
2) type somewhere random chars (Cannot find symbol error)
3) close the editor tab w/o saving
4) open the class again
-> the error annotation is still there, see the screenshot
Comment 1 Jiri Prox 2006-10-06 12:37:19 UTC
Created attachment 34978 [details]
screenshot
Comment 2 Jan Lahoda 2006-12-13 10:22:29 UTC
Should not happen anymore. For commit log please see issue #90054. If it happens
again, please reopen. Thanks.
Comment 3 Jiri Prox 2006-12-14 11:36:45 UTC
verified
Comment 4 yeti 2017-07-18 17:20:18 UTC
Oh wow, this is from 2006. I have this exact same issue with NetBeans 8.2.

After I click in output-tab 'Apache Tomcat or TomEE' on an error-line in stacktrace, the 'Error'-annotation is kept in editor, even after I just cut the line, save it again, or clean&build + deploy.
The line can be removed, but the annotation will then be on another (wrong) line.

If I click on another Error-link in the stacktrace, it will go to the source there, and the other annotation will be removed though. However, this way I will still have one annotation that I'm unable to remove.

Screenshot already posted in 2006 is sufficiently accurate in describing the issue (although my line becomes red, but it's the same icon too).