Thanks for contributing this.
Did you actually have a compilation error? This compiled fine with JDK 1.4
in the past. There's a constructor that takes a double.
WILL
----- Original Message -----
From: "Alexey Panchenko" <[EMAIL PROTECTED]>
To: "Velocity Developers List" <[email protected]>
Sent: Monday, October 24, 2005 10:54 PM
Subject: MathUtils patch
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]