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.
Activity
Werner Guttmann
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Werner Guttmann [ wguttmn ] |
Werner Guttmann
made changes -
| Fix Version/s | 0.9.6.1 [ 11660 ] | |
| Original Estimate | 900 | |
| Remaining Estimate | 15 minutes [ 900 ] |
Werner Guttmann
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Werner Guttmann
made changes -
| Status | In Progress [ 3 ] | Open [ 1 ] |
Werner Guttmann
made changes -
| Attachment | patch.txt [ 15090 ] |
Werner Guttmann
logged work - 25/Apr/05 2:59 PM
-
- Time Spent:
- 10 minutes
- Added code to Types.java as included in the patch.
Werner Guttmann
made changes -
| Time Spent | 10 minutes [ 600 ] | |
| Remaining Estimate | 15 minutes [ 900 ] | 0 minutes [ 0 ] |
Werner Guttmann
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Werner Guttmann
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Ralf Joachim
made changes -
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Resolution | Fixed [ 1 ] |
Ralf Joachim
made changes -
| Fix Version/s | 0.9.7 [ 11660 ] | |
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 0.9.7 M1 [ 11730 ] | |
| Status | Reopened [ 4 ] | Closed [ 6 ] |
This patch fixes above problem by casting the 0 to a double. In addition, I've applied some more casts to several cases and added some Javadocs.