Summary: | NPE mapping method in EL | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | Remy Maucherat <remm> |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | trunk | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: | Patch |
Description
Remy Maucherat
2013-01-03 14:20:38 UTC
I think you have identified a problem but I'm not sure the proposed solution is correct. Treating a null as an exact match for a parameter seems wrong. I think it needs to be treated as a possible match. I'll work on some test cases. (In reply to comment #1) > I think you have identified a problem but I'm not sure the proposed solution > is correct. Treating a null as an exact match for a parameter seems wrong. I > think it needs to be treated as a possible match. I'll work on some test > cases. I think it is suspicious too [like many one line patches], but even if it goes through ELSupport.coerceToType, I think null looks like it will always end up matching the expected type (unless I missed something). It is the exact match part that is the problem. As soon as an exact match is find, Tomcat stops looking. With a null parameter type it needs to keep looking as it is only a possible match. Tomcat needs to ensure it is the only possible match and that there aren't ambiguous matches. I fixed this in trunk and 7.0.x and it will be included in 7.0.35 onwards. Thanks, very nice improvement. |