Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47453
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 1 Dec 2009 22:52:55 +0000 (22:52 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 1 Dec 2009 22:52:55 +0000 (22:52 +0000)
Handle void return types.
Patch by Tim Funk.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@885991 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/compiler/JspUtil.java

index 31ced22..ae21fec 100644 (file)
@@ -338,6 +338,8 @@ public class JspUtil {
             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);