Hi Christian - please just apply the patch.
Jody
> Method  VisitorCalculationTest>>testUnique 
>
> The following code sequence causes the problem: 
>
>        Object[] array = uniqueResult3.toArray();
>        assertEquals(3.0, ((Double)array[0]).doubleValue(), 0);
>        assertEquals(2, ((Integer)array[1]).intValue(), 0);
>        assertEquals(4, ((Integer)array[2]).intValue(), 0);
>        assertEquals(4.5, ((Double)array[3]).doubleValue(), 0); 
>
> Behind the scenes, the toArray() call results in HashSet>>toArray(). The 
> element order of the resulting array is not deterministic. Substituting the 
> code sequence with 
>
>        List list = uniqueResult3.toList();
>        assertTrue(list.contains(3.0));
>        assertTrue(list.contains(2));
>        assertTrue(list.contains(4));
>        assertTrue(list.contains(4.5)); 
>
> will work on any sdk and does the some. (tested on ibm and sun) 
>
> Should I commit or do you want a patch file ? 
>
> christian 
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to