Bug 54069 - Jasper no longer parses <%----------------------------%>
Summary: Jasper no longer parses <%----------------------------%>
Status: RESOLVED DUPLICATE of bug 53986
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 7.0.32
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2012-10-30 07:03 UTC by Guno Heitman
Modified: 2012-10-30 08:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Guno Heitman 2012-10-30 07:03:57 UTC
My company's JSPs use a lot of comment blocks like this:

 <%-- Blah blah blah         --%>

Starting with Tomcat 7.0.32, this causes JasperExceptions:
org.apache.jasper.JasperException: Unterminated &lt;%-- tag

Up until 7.0.30, this worked fine. Perhaps this is introduced by bug 53713?

This is easy to reproduce. Create a jsp file with the following contents:
Start of page.
	<%-- Blah blah blah         --%>
End of page.
Visit this jsp page with 7.0.32 and 7.0.30 and see the difference.

I've been looking at the jsp specs to see if <%----------------------------%> might be invalid; perhaps a space is mandatory following the two dashes. But I didn't see that mentioned explicitly anywhere.
Comment 1 Rainer Jung 2012-10-30 08:05:48 UTC

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