Summary: | javax.el.MapELResolver getType returns class of kept object instead of Object.class | ||
---|---|---|---|
Product: | Tomcat 6 | Reporter: | Fyodor Kravchenko <fedd> |
Component: | Servlet & JSP API | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | mhn4dev |
Priority: | P2 | ||
Version: | 6.0.26 | ||
Target Milestone: | default | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: | JSP script reproduces the bug. Uncomment lines 46, 47 to see the real problem. |
Description
Fyodor Kravchenko
2011-05-09 11:18:04 UTC
Thanks for the test case. I am looking at this now. As an aside, the test JSP is invalid. You can't use hm.int since int is not a valid Java identifier (it is a reserved word). Tomcat 6 lets you get away with this. Tomcat 7 doesn't (unless you explicitly disable the check). This doesn't affect the validity of this bug report. Replacing "int" with "integer" allows the JSP to execute. Fixed in 7.0.x for 7.0.14 onwards. Proposed for 6.0.x. ListELResolver.getType() has the same issue Also fixed in 7.0.x for 7.0.14 and proposed for 6.0.x Fixed in 6.0.x and will be included in 6.0.33 onwards. Thanks (if it's appropriate to thank here)! |