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 120533 - first comment in jsp file mark as an error
Summary: first comment in jsp file mark as an error
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-10-30 18:29 UTC by Pavel Buzek
Modified: 2008-09-19 09:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample jsp (1.65 KB, text/plain)
2007-10-30 19:31 UTC, Pavel Buzek
Details
The screenshot. (56.95 KB, image/png)
2007-10-31 15:02 UTC, Petr Pisl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Buzek 2007-10-30 18:29:32 UTC
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.
Comment 1 Marek Fukala 2007-10-30 19:20:13 UTC
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?
Comment 2 Pavel Buzek 2007-10-30 19:31:01 UTC
Created attachment 52049 [details]
sample jsp
Comment 3 Pavel Buzek 2007-10-30 19:38:48 UTC
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.
Comment 4 Marek Fukala 2007-10-31 14:55:37 UTC
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
Comment 5 Petr Pisl 2007-10-31 15:01:10 UTC
I have on the first line message "')' expected". See the attached screenshot. The project is web application with
existing sources.
Comment 6 Petr Pisl 2007-10-31 15:02:04 UTC
Created attachment 52127 [details]
The screenshot.
Comment 7 Petr Pisl 2007-10-31 15:46:52 UTC
I'm increasing to P2, because I'm seeing the error message on every page.
Comment 8 Tomasz Slota 2007-10-31 16:31:17 UTC
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
Comment 9 Tomasz Slota 2007-10-31 16:38:14 UTC
Pavle, can you please attach your original project?
Comment 10 Pavel Buzek 2007-11-01 05:09:23 UTC
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 :(
Comment 11 Jiri Prox 2008-04-11 01:06:44 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 12 pslechta 2008-09-19 09:53:23 UTC
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.