Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000908 [Resin] minor always 02-02-06 11:45 02-02-06 16:21
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.0.17
Summary 0000908: Custom taglib tag that implements TryCatchFinally can result in duplicate variable declaration
Description If I have a JSP like

<% int t = 0; %>
<foo:customTag> ... </foo:customTag>

where the class for the custom tag implements javax.servlet.jsp.tagext.TryCatchFinally, the resulting JSP won't compile. The reason is that the generated Java code contains a "catch" clause like:

catch (Throwable t) { }

but there is already a "t" declared in the .java file. The variable name in the "catch" should be something that's less likely to collide with a user-defined variable, e.g. "_jsp_trycatchfinally_throwable" or something like that.

(I realize Sun's Javadoc for the TryCatchFinally interface has example code with "t" as the variable name, but other app servers don't use that name, so Resin fails to compile JSPs that work fine in other servers.)
Additional Information
Attached Files

- Relationships

- Notes
02-02-06 16:21


- Issue History
Date Modified Username Field Change
02-02-06 11:45 koreth New Issue
02-02-06 16:21 ferg Note Added: 0000851
02-02-06 16:21 ferg Assigned To  => ferg
02-02-06 16:21 ferg Status new => closed
02-02-06 16:21 ferg Resolution open => fixed
02-02-06 16:21 ferg Fixed in Version  => 3.0.18

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker