Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 41167 invoked from network); 4 Jan 2009 21:56:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jan 2009 21:56:14 -0000 Received: (qmail 93893 invoked by uid 500); 4 Jan 2009 21:56:12 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 93850 invoked by uid 500); 4 Jan 2009 21:56:12 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 93837 invoked by uid 99); 4 Jan 2009 21:56:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2009 13:56:12 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2009 21:56:10 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 5AA50234C47E; Sun, 4 Jan 2009 13:55:49 -0800 (PST) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: DO NOT REPLY [Bug 46470] JspC may omit tld dependency from generated files when caching is on X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 6 X-Bugzilla-Component: Jasper X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: knst.kolinko@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: default X-Bugzilla-Changed-Fields: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20090104215549.5AA50234C47E@brutus.apache.org> Date: Sun, 4 Jan 2009 13:55:49 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=46470 --- Comment #1 from Konstantin Kolinko 2009-01-04 13:55:47 PST --- Created an attachment (id=23082) --> (https://issues.apache.org/bugzilla/attachment.cgi?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: bugNnnnn /output /source 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 "source1_jsp.java" and "source2_jsp.java" that are in a subdirectory of bugNnnnn\output Here is the difference: ***** source1_jsp.java static { _jspx_dependants = new java.util.ArrayList(1); _jspx_dependants.add("/WEB-INF/example-taglib.tld"); } private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005feg_005fShowSource_0026_005fjspFile_005fnobody; ***** source2_jsp.java private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005feg_005fShowSource_0026_005fjspFile_005fnobody; ***** 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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org