Apache JDO Project - [jira] Closed: (JDO-49) TestFieldsOfDouble value outside of Derby DOUBLE range

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > October 2005 > [jira] Closed: (JDO-49) TestFieldsOfDouble value outside of Derby DOUBLE range





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Closed: (JDO-49) TestFieldsOfDouble value outside of Derby DOUBLE range
Michelle Caisse (JIRA)

2005-10-31, 5:45 pm

[ http://issues.apache.org/jira/browse/JDO-49?page=all ]

Michelle Caisse closed JDO-49:
------------------------------


> TestFieldsOfDouble value outside of Derby DOUBLE range
> ------------------------------------------------------
>
> Key: JDO-49
> URL: http://issues.apache.org/jira/browse/JDO-49
> Project: JDO
> Type: Bug
> Components: tck20, tck11
> Reporter: Michelle Caisse
> Assignee: Michelle Caisse


>
> TestFieldsOfDouble fails because the test attempts to persist values of Double.MIN_VALUE and Double.MAX_VALUE and the Derby double datatype has narrower limits.
> Craig's comment:
> We should not use Double.MIN_VALUE and MAX_VALUE in TCK tests. I had changed a number of these to fix a similar bug last year, but apparently overlooked this class.
> We decided to use these values for double in the AllTypes class:
> public static final double DOUBLE_SMALLEST = -9999999999999.9;
> public static final double DOUBLE_LARGEST = 9999999999999.9;
> public static final double[] double_values =
> { DOUBLE_SMALLEST, DOUBLE_LARGEST, 0.0, 100.0, 100.0,
> 50000000.0, -234234.234, 1000000000.0, 350.5, -25.5 };
> I'd be happy to use DOUBLE_LARGEST and DOUBLE_SMALLEST from AllTypes.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com