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 - Gutter annotations are multiplied after moving jsp file
Summary: Gutter annotations are multiplied after moving jsp file
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-27 12:09 UTC by pribyl
Modified: 2016-07-07 08:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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