Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 253205 - Validator creates 3 wrong error markers in working file
Summary: Validator creates 3 wrong error markers in working file
Status: RESOLVED DUPLICATE of bug 249799
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 3.0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: jst.jsp CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-03 09:52 EST by Patrick Cornelissen CLA
Modified: 2008-11-03 10:39 EST (History)
1 user (show)

See Also:


Attachments
jsp exmple file that triggers the errors (1.56 KB, text/plain)
2008-11-03 09:53 EST, Patrick Cornelissen CLA
no flags Details
project that shows the error here (19.10 KB, application/zip)
2008-11-03 10:22 EST, Patrick Cornelissen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Cornelissen CLA 2008-11-03 09:52:46 EST
I have a problem with the jsp validation.
In the attached file in my small testproject the validator generates 3 markers...

"Syntax error on token "}", delete this token", 
"Syntax error on token "catch", identifier expected",
"Syntax error on insert "Finally" to complete TryStatement"
each with the linenumber 0 for the given file

As you can see there is no special markup, no include statements, no inline java code.

We also have a customer project where the same error occurs on multiple files.

But the error is triggered there with an existing linenumber (which IMHO is not suspicious)

...
<form:select path="contractType" size="1">
<form:option value="">---</form:option>
<form:option value="<%= ContractType.GUC %>">Netznutzungsvertrag</form:option>
<form:option value="<%= ContractType.GCC %>">Netzanschlussvertrag</form:option>
<form:option value="<%= ContractType.CUC %>">Anschlussnutzungsvertrag </form:option>
</form:select>
...

The error occurs in the last option row between the %= and the ContractType.CUC. (Yes the error points to the space between them and yes I have replaced it with a regular space just to be sure that it's the correct char)

The given examples compile well and the application is working, but the cluttered problem view makes it hardly usable.

Am I missing something or is this a bug in the validator?
Comment 1 Patrick Cornelissen CLA 2008-11-03 09:53:36 EST
Created attachment 116814 [details]
jsp exmple file that triggers the errors
Comment 2 Patrick Cornelissen CLA 2008-11-03 10:22:59 EST
Created attachment 116819 [details]
project that shows the error here

The project was smaller than expected, so I have attached the whole project instead of the jsp.
The pricelist.jsp is the one with the error
Comment 3 Nitin Dahyabhai CLA 2008-11-03 10:39:56 EST
Confirmed that the original file and attached project work as they should with JSTL 1.1 and Spring 2.5.5 in WTP 3.0.3, i.e. no errors (other than spelling, at least for the JSP files).



*** This bug has been marked as a duplicate of bug 249799 ***