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.
Create a new jsp page (or use the one created in web module by default). The first <%-- is underlined as an error with message "illegal start of type ';' expected not a statement". If I enter another comment in front of it, the first comment show this error.
It looks like an error from SimplifiedJSPServlet (some of the errors from java always appear on the first line regardless what is there) or some jsp parser issue. BTW I cannot reproduce on normal web project. It the yours freeform or from existing sources? Doesn completion in java scriptlet offer anthing then?
Created attachment 52049 [details] sample jsp
The "sample jsp" I just attached is in a plain web app project created in some earlier build of 6.0. I had scriplet in it, but when I removed it I still see the same issue. I do not see it in a new project I just created even if I create a scriplet in the page. I guess we can tack this as a P3, given that I cannot reproduce it, also it's not that critical as the rest editor is not impacted.
I was able to reproduce on a normal web project, but without j2ee server (broken references). It was happening just for one file. It looks like the messages comes from the java support in jsp, reassigning to Tomasz
I have on the first line message "')' expected". See the attached screenshot. The project is web application with existing sources.
Created attachment 52127 [details] The screenshot.
I'm increasing to P2, because I'm seeing the error message on every page.
ppisl: this was a completely different issue, I committed a fix: /cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/SimplifiedJSPServlet.java,v <-- SimplifiedJSPServlet.java new revision: 1.30; previous revision: 1.29
Pavle, can you please attach your original project?
unfortunately the original project was on my windows computer that i left at home, i won't get to it in the next 3 weeks, sorry :(
moving opened issues from TM <= 6.1 to TM=Dev
Not able to reproduce with NB 6.5. Closing as WORKSFORME. If anybody does not agree, please reopen and attach project which can be used to reproduce the problem.