Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 243663 - End tags without start tags aren't reported by validation
Summary: End tags without start tags aren't reported by validation
Status: CLOSED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-09 12:04 EDT by Nitin Dahyabhai CLA
Modified: 2008-11-11 19:25 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nitin Dahyabhai CLA 2008-08-09 12:04:27 EDT
 
Comment 1 Nitin Dahyabhai CLA 2008-08-09 12:18:33 EDT
For custom tags, having an end tag without a start tag doesn't cause a validation message.  As this can cause a translation failure, it should.
Comment 2 Nitin Dahyabhai CLA 2008-09-17 17:55:48 EDT
Actually, it should cause a validation message in the unbalanced tag.  An unbalanced '{' or '}' syntax error is nearly impossible to figure out when it doesn't original from the user's own scriptlets.
Comment 3 Nitin Dahyabhai CLA 2008-10-21 23:29:54 EDT
Fixed.
Comment 4 Nick Sandonato CLA 2008-11-07 09:56:43 EST
Verified in 3.1M3-20081107075001.

Should the severity of this be controllable via the JSP Validation preferences?
Comment 5 Nitin Dahyabhai CLA 2008-11-11 19:25:48 EST
Technically the MarkupValidator lives in XML.  Creating preferences for that would lend weight to the idea suggested in bug 254647 comment 2, although the validator would have to become headless and registered with the validation framework to really have that make sense.