FYI: Remerge java.math.BigDecimal with Classpath
Mark Wielaard
mark@klomp.org
Fri Feb 7 21:02:00 GMT 2003
Hi,
The following two changes were added to Classpath a while ago. They fix
a number of Mauve BigDecimal parse/decode failures:
* BigDecimal.toString() incorrectly would return
strings that start with "." or "-." in some cases.
* BigDecimal(String) could not cope with a "+"
following the "E" or "e". E
* BigDecimal(String)'s error handling for
malformed exponent parts was sloppy.
* BigDecimal.valueOf(Long.MIN_VALUE) returned the same
value as BigDecimal.valueOf(0L).
With this applied there remain only 5 DiagBigDecimal failures (of 600).
2003-02-07 Stephen Crawley <crawley@dstc.edu.au>
* java/math/BigDecimal(valueOf): fix DiagBigDecimal val008, val013
tests; see patch #1016 on Savannah.
2003-02-07 Stephen Crawley <crawley@dstc.edu.au>
* java/math/BigDecimal.java (BigDecimal): enhance parsing of exponents
(toString): do not return Strings starting with . and - erroneously.
Improves Mauve results to 12 of 600 instead of 16 of 338 on
DiagBigDecimal.
I am committing this to the branch and mainline.
Cheers,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BigDecimal.patch
Type: text/x-patch
Size: 2443 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030207/80797e01/attachment.bin>
More information about the Java-patches
mailing list