You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2001/01/23 16:32:13 UTC

BugRat Report #293 - JSPC interprets the second <%@ include .. %> of the same file as recursive

----- Sender's Comment -----
here is what is happening on my machine.
----- End Of Sender's Comment ---------------------------
Report URL: <http://znutar.cortexity.com/BugRatViewer/ShowReport/293>

Report #293 Details

Project: Jasper
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: closed
Priority: medium
Severity: serious
Confidence: public
Environment: 
   Release: 3.1
   JVM Release: 1.2.2_005
   Operating System: Windows NT
   OS Release: 4.0 SP5
   Platform: Classic VM (build JDK-1.2.2_005,

Synopsis: 
JSPC interprets the second <%@ include .. %> of the same file as recursive

Description:
If the same file appears in the JSP statement 
<%@ include file=<filename> %>
more than one time JSPC reports "maybe this
 is a recursive include?!".


org.apache.jasper.compiler.ParseException: Seen file foo.jsp already, maybe this
 is a recursive include?!
        at org.apache.jasper.compiler.JspReader.pushFile(JspReader.java, Compile
d Code)
        at org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:127)
        at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspP
arseEventListener.java, Compiled Code)
        at org.apache.jasper.compiler.DelegatingListener.handleDirective(Delegat
ingListener.java:116)
        at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compi
led Code)
        at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled C
ode)
        at org.apache.jasper.JspC.parseFile(JspC.java, Compiled Code)
        at org.apache.jasper.JspC.parseFiles(JspC.java, Compiled Code)
        at org.apache.jasper.JspC.main(JspC.java:601)
error:Seen file foo.jsp already, maybe this is a recursive include?!

I didn't try 3.2beta, I seems the problem persist.