Summary: | JasperException for deferred-method with return type void | ||
---|---|---|---|
Product: | Tomcat 6 | Reporter: | W.Rupprath |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 6.0.20 | ||
Target Milestone: | default | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: | Zipped Eclipse 3.4 projects |
Description
W.Rupprath
2009-06-30 01:46:56 UTC
Please see if the attached patch fixes the issue Index: java/org/apache/jasper/compiler/JspUtil.java =================================================================== --- java/org/apache/jasper/compiler/JspUtil.java (revision 833094) +++ java/org/apache/jasper/compiler/JspUtil.java (working copy) @@ -338,6 +338,8 @@ c = float.class; else if ("double".equals(type)) c = double.class; + else if ("void".equals(type)) + c = void.class; else if (type.indexOf('[') < 0) c = loader.loadClass(type); updating status to NEEDINFO based on last comment I can confirm that Tim's proposed patch does indeed fix the compilation problem. I have applied the patch to trunk and proposed it for 6.0.x Patch applied to 6.0.x and will be included in 6.0.21 onwards. |