db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Russell <Craig.Russ...@Sun.COM>
Subject Re: JIRA JDO-104
Date Wed, 27 Jul 2005 18:37:13 GMT
Hi Andy,

On Jul 27, 2005, at 11:07 AM, Andy Jefferson wrote:

> In reference to the Collection/List/Set tests failing with errors  
> such as :-
>
> test(org.apache.jdo.tck.models.fieldtypes.TestArrayListCollections) 
> javax.jdo.JDODataStoreException:
> ERROR 22003: The resulting value is outside the range for the data  
> type
> DOUBLE.
>
> The test is trying to use a Collection of doubles, and insert Java  
> values of
> Double.MAX_SIZE into a Derby DOUBLE column, which will always be  
> touch and go
> with rounding issues etc (and whether the RDBMS in question  
> complains when
> the value is just outside its range, which Derby does, but MySQL  
> doesn't).
>
> I look at the TestFieldsOfDouble and see that the largest value  
> used in that
> test for a Double is AllTypes.DOUBLE_LARGEST  =  9999999999999.9
> Should we not be using the same values (whatever they are) in the
> collection/list/set tests, so we have consistency ?

Yes, this was an oversight. We intended that DOUBLE_LARGEST would be  
used instead of the Double.MAX_SIZE.

If you have a patch I'd be happy to recommend the change.

Craig
>
>
>
>
> -- 
> Andy
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message