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.
Product Version: NetBeans IDE Dev (Build 200902261558) Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) Java Web Application Project I accidentally placed *.jsp file into WEB-INF folder. After moving it into the "Web Pages" I noticed an error with annotation: there was the cycle-through-annotations arrow, but it did not work. Apparently. In fact, there were two annotations, both the same. After solving the problem that was causing the annotation to appear, the arrow disappeared, but one of the annotation still remained. Reopening the editor window did not help. To reproduce: 1, Create new Java Web Application 2, Select the "WEB-INF" node and press Ctrl+N 3, Select Web - JSP , Finish 4, Break the code anyhow (e.g. change the @page tag to @pagex) -> red annotation icon appears 5, Save the file and drag its note into the "Web Pages" folder 6, Reopen the file in the editor => The problem with annotation can be seen
reproducible
The JSP ErrorAnnotation class is responsible for attaching and detaching error annotations. It remembers all annotations added by itself and removes them if not valid already. However this doesn't happen when the file is moved. After reopening of the file a new instance of ErrorAnnotation is created for new FileObject so the list of original annotations is lost. However the document instance remains and remembers its (invalid) annotations.
evaludated already
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss