db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@debrunners.com>
Subject Re: [PATCH] new masters for test failures under jdk15
Date Wed, 02 Feb 2005 06:04:49 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Suresh Thalamati wrote:

>
> Following tests are failing when run under JDK15:
> derbyall/derbynetmats/derbynetmats.fail:derbynet/callable.java
> derbyall/derbynetmats/derbynetmats.fail:derbynet/csPrepStmt.java
> derbyall/derbynetmats/derbynetmats.fail:derbynet/prepStmt.java
>
> Example diff:
> < cstmt.getBigDecimal(2): 0.000000000000001
> 30a30
>> cstmt.getBigDecimal(2): 1E-15
>
> difference in the output of the tests seems to be because  of the
> java.math.BigDecimal:: toString()  output differences in JDK15 and JDK14.
> This patch fixes the test failures by creating new master files for the
> above mentioned tests when run under jdk15.


For future reference it's worth considering if the test can be changed
to remove the need for a vm specific master file. In this case as Jeremy
discovered for the engine a while ago, there is a toPlainString() added
in J2SE 5.0 that matches the old toString() behaviour. [Of course why
Sun changed the behaviour here is an interesing question.] Though in
this case using toPlainString() would have to use reflection until we
decide that requiring a download of J2SE 5.0 to build Derby is ok.

Dan.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCAG2BIv0S4qsbfuQRAmtYAJ4u2tjg7vLTM6VGEG+FOvCMi6tNpQCg1XCC
M3kvLlKz5iYbVHFslTC5Ruo=
=6NxO
-----END PGP SIGNATURE-----


Mime
View raw message