Package: libspring-java / 4.3.22-4

0034-velocity-tools-compatibility.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix the compatibility with the version of velocity-tools in Debian
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/velocity/VelocityToolboxView.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/velocity/VelocityToolboxView.java
@@ -110,7 +110,7 @@
 		if (getToolboxConfigLocation() != null) {
 			ToolboxManager toolboxManager = ServletToolboxManager.getInstance(
 					getServletContext(), getToolboxConfigLocation());
-			Map<?, ?> toolboxContext = toolboxManager.getToolbox(velocityContext);
+			Map toolboxContext = toolboxManager.getToolbox(velocityContext);
 			velocityContext.setToolbox(toolboxContext);
 		}