Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.9.4, 0.9.5, 0.9.6
-
Fix Version/s: 0.9.7 M1
-
Component/s: None
-
Labels:None
-
Environment:Windows
-
Number of attachments :
Description
in Types.java, the usage for BigDecimal is:
new TypeInfo( "big-decimal", null,
java.math.BigDecimal.class, true, new BigDecimal( 0 ) ),
however, this will not work in jdk 1.4.2 environment, because in 1.4.2, the only types supported are BigInteger, double, String. If this code runs on 1.4.2, it will cause the exception which says the constructor for BigDecimal (passing int or long) does not exist. I think to be safe, cast 0 to double, like new BigDecimal( (double) 0 ).
It runs on jdk 1.5.