Hello,

This patch allows building on 1.5 with target=1.4

(in the current code it calls constructor "public BigDecimal(int val)"
which is @since 1.5)

Index: src/java/org/apache/velocity/runtime/parser/node/MathUtils.java
===================================================================
--- src/java/org/apache/velocity/runtime/parser/node/MathUtils.java     
(revision 328235)
+++ src/java/org/apache/velocity/runtime/parser/node/MathUtils.java     
(working copy)
@@ -50,7 +50,7 @@
     /**
      * A BigDecimal representing the number 0
      */
-    protected static final BigDecimal DECIMAL_ZERO    = new BigDecimal ( 0 );
+    protected static final BigDecimal DECIMAL_ZERO    = new BigDecimal ( 
BigInteger.ZERO );
     protected static final BigInteger INT_ZERO        = BigInteger.valueOf( 0 
);
 
     /**

-- 
Best regards,
 Alexey                          mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to