File: 0010_velocity_17.diff

package info (click to toggle)
libspring-java 3.0.6.RELEASE-17
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 50,744 kB
  • ctags: 58,990
  • sloc: java: 325,579; xml: 67,955; sql: 176; makefile: 40; ruby: 33; sh: 6
file content (20 lines) | stat: -rw-r--r-- 786 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Compatibility with Velocity 1.7 API
Author: Miguel Landaeta <miguel@miguel.cc>
Bug-Debian: http://bugs.debian.org/655812
Forwarded: no
Last-Update: 2012-01-14

--- libspring-java-3.0.6.RELEASE.orig/projects/org.springframework.context.support/src/main/java/org/springframework/ui/velocity/VelocityEngineFactory.java
+++ libspring-java-3.0.6.RELEASE/projects/org.springframework.context.support/src/main/java/org/springframework/ui/velocity/VelocityEngineFactory.java
@@ -250,9 +250,11 @@ public class VelocityEngineFactory {
 			// Perform actual initialization.
 			velocityEngine.init();
 		}
+		/* Since Velocity 1.7 initialization call doesn't throw IOExceptions
 		catch (IOException ex) {
 			throw ex;
 		}
+		*/
 		catch (VelocityException ex) {
 			throw ex;
 		}