Andrea Aime ha scritto:
> Andrea Aime ha scritto:
>> Hi,
>> I've been looking a little more in our converters usage and
>> I believe I'm finding quite a few issues.
>>
>> The first one is due to the following converters behaviour.
>> The following snippet:
>> System.out.println(Converters.convert("1002.5", Integer.class));
>> System.out.println(Converters.convert("1002.0", Long.class));
>> results in the following output:
>> 1002
>> 0
>
Here is another funny one (result running with jdk6):
System.out.println(Converters.convert("12e2", Long.class));
System.out.println(Converters.convert("12e2", Double.class));
12
1200
Heh...
Cheers
Andrea
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel