Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
908 | minor | always | 02-02-06 11:45 | 02-02-06 16:21 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.0.17 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.0.18 | ||
|
|||||
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.) |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|