tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46470] JspC may omit tld dependency from generated files when caching is on
Date Sun, 04 Jan 2009 21:55:49 GMT

--- Comment #1 from Konstantin Kolinko <>  2009-01-04 13:55:47
PST ---
Created an attachment (id=23082)
 --> (
webapp that reproduces the issue when compiled by JspC

To reproduce the issue:

1. Create the following subdirectory and two subdirectories in it:

2. Unzip the war file into bugNnnnn/source

3. Launch JspC compiler from an ant task, or from command line with the
following arguments:

-uriroot bugNnnnn\source -d bugNnnnn\output

4. Compare the generated files "" and "" that
are in a subdirectory of bugNnnnn\output

Here is the difference:


  static {
    _jspx_dependants = new java.util.ArrayList(1);

  private org.apache.jasper.runtime.TagHandlerPool

  private org.apache.jasper.runtime.TagHandlerPool

The source1.jsp and source2.jsp files are the same, thus there should be no
such difference in the generated files.

5. Delete the generated files from bugNnnnn/output

Credits: This web application is an excerpt from the examples application
bundled with TC.

The cause:
This dependency information is generated by the following lines of
TagLibraryInfoImpl class (as of tc6.0.x):

165:   PageInfo pageInfo = ctxt.createCompiler().getPageInfo();
166:   if (pageInfo != null) {
167:        pageInfo.addDependant(location[0]);
168:   }

Those lines belong to the constructor of the class and are not executed when
the class is reused from the cache.

I reproduced the issue in the current tc6.0.x and I expect it to exist in TC
6.0.18 release as well.

I suppose that it also exists in TC 5.5.27, though have not yet tested there.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message