You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/07/10 03:13:27 UTC

DO NOT REPLY [Bug 10620] New: - Page won't compile when it has "too many" custom JSP tags

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10620>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10620

Page won't compile when it has "too many" custom JSP tags

           Summary: Page won't compile when it has "too many" custom JSP
                    tags
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tomer@kodak.com


When the page contains more than about 50 tags (your mileage may vary), the
compiler seems to get confused and complain "Variable _jspx_eval_show_bug_51 may
not have been initialized" for each subsequent occurrence of a tag. The same
generated class compiles w/o a problem from the command line (using sun javac v.
1.4.0_01). This has nothing to do with the 64K limit on method size, as the
.class file created with 50 tags (no bug) is 12k.

To replicate, use the following:
taglib class (Bug.java):
    package bug;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class Bug extends TagSupport{}

tld file (bug.tld):
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    	    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
    	    "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
       <tlibversion>1.0</tlibversion>
       <jspversion>1.1</jspversion>
       <shortname>bug</shortname>
       <uri></uri>
       <info>a demo of the bug</info>
      <tag>
    	<name>bug</name>
    	<tagclass>bug.Bug</tagclass>
    	<bodycontent>empty</bodycontent>
    	<info> </info>
      </tag>
    </taglib>

jsp file:
    <%@ taglib uri="/WEB-INF/bug.tld" prefix="show" %>
    <HTML>
    <BODY>
    (If bug doesn't show, add more lines like the ones these:)
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>
    here's a tag: <show:bug/><br>

    </BODY>
    </HTML>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>