Bug 61945 - infinite recursion in Jasper compilation of a recursive JSP tagfile
Summary: infinite recursion in Jasper compilation of a recursive JSP tagfile
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 9.0.2
Hardware: PC All
: P2 regression (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-31 02:52 UTC by Matthew Firth
Modified: 2018-01-02 14:55 UTC (History)
1 user (show)



Attachments
demo WAR that generates StackOverflowError upon invocation of index.jsp (213.11 KB, application/zip)
2017-12-31 02:52 UTC, Matthew Firth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Firth 2017-12-31 02:52:15 UTC
Created attachment 35632 [details]
demo WAR that generates StackOverflowError upon invocation of index.jsp

A tagfile that contains recursive invocation of itself cannot be compiled under Tomcat 9.0.2.   Works OK works OK in 8.5.24.

Sample WAR attached.  Invoking /recursive-taglib/index.jsp causes java.lang.StackOverflowError.
Comment 1 Remy Maucherat 2018-01-02 14:55:01 UTC
Thanks for the test case. Although it could need to be further reviewed, I think a change to what prototype mode did was not right. The fix will be in 9.0.3.