Anonymous | Login | Signup for a new account | 12-17-2024 08:31 PST |
Main | My View | View Issues | Change Log | Docs |
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |