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 159301

Summary: Gutter annotations are multiplied after moving jsp file
Product: javaee Reporter: pribyl <pribyl>
Component: JSPAssignee: issues@javaee <issues>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description pribyl 2009-02-27 12:09:48 UTC
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
Comment 1 Marek Fukala 2009-03-03 12:29:41 UTC
reproducible
Comment 2 Marek Fukala 2009-03-03 12:43:49 UTC
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.
Comment 3 Marek Fukala 2009-04-28 09:52:46 UTC
evaludated already
Comment 4 Martin Balin 2016-07-07 08:55:52 UTC
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