java-velocity-tools-2.0-servlet.patch
1 | diff -Nru velocity-tools-2.0-src/src/main/java/org/apache/velocity/tools/view/ImportSupport.java velocity-tools-2.0-src.servlet/src/main/java/org/apache/velocity/tools/view/ImportSupport.java |
2 | --- velocity-tools-2.0-src/src/main/java/org/apache/velocity/tools/view/ImportSupport.java 2007-12-12 18:04:38.000000000 +0100 |
3 | +++ velocity-tools-2.0-src.servlet/src/main/java/org/apache/velocity/tools/view/ImportSupport.java 2015-06-19 15:50:41.054584752 +0200 |
4 | @@ -36,6 +36,7 @@ |
5 | import javax.servlet.RequestDispatcher; |
6 | import javax.servlet.ServletContext; |
7 | import javax.servlet.ServletOutputStream; |
8 | +import javax.servlet.WriteListener; |
9 | import javax.servlet.http.HttpServletRequest; |
10 | import javax.servlet.http.HttpServletResponse; |
11 | import javax.servlet.http.HttpServletResponseWrapper; |
12 | @@ -510,6 +511,14 @@ |
13 | { |
14 | bos.write(b); |
15 | } |
16 | + |
17 | + public void setWriteListener(WriteListener listener) { |
18 | + throw new UnsupportedOperationException("Not implemented yet."); |
19 | + } |
20 | + |
21 | + public boolean isReady() { |
22 | + return false; |
23 | + } |
24 | }; |
25 | return sos; |
26 | } |
27 | diff -Nru velocity-tools-2.0-src/src/main/java/org/apache/velocity/tools/view/ParameterTool.java velocity-tools-2.0-src.servlet/src/main/java/org/apache/velocity/tools/view/ParameterTool.java |
28 | --- velocity-tools-2.0-src/src/main/java/org/apache/velocity/tools/view/ParameterTool.java 2009-05-12 00:24:53.000000000 +0200 |
29 | +++ velocity-tools-2.0-src.servlet/src/main/java/org/apache/velocity/tools/view/ParameterTool.java 2015-06-19 15:45:11.950303234 +0200 |
30 | @@ -174,7 +174,7 @@ |
31 | Map source = super.getSource(); |
32 | if (source == null) |
33 | { |
34 | - source = expandSingletonArrays(getRequest().getParameterMap()); |
35 | + source = expandSingletonArrays((Map<String,Object>)(Object)getRequest().getParameterMap()); |
36 | super.setSource(source); |
37 | } |
38 | return source; |
39 |