You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Jonathan Purvis <jo...@reeltwo.com> on 2006/04/19 06:32:24 UTC

[village] Value.asDouble uses Integer.valueOf to parse strings

I got this exception from Village:

Caused by: com.workingdogs.village.DataSetException: Bad conversion:
java.lang.NumberFormatException: For input string: "NaN"
	at com.workingdogs.village.Value.asDouble(Value.java:1046)

It didn't make any sense to me, so i looked at the source code and the
Value.asDouble method really does say:
            else if (isString())
            {
                return Integer.valueOf((String) valueObject).doubleValue();
            }

(As found at
<http://svn.softwareforge.de/svn/opensource/village/trunk/src/java/com/workingdogs/village/Value.java>)

Is there a reason for this or is it just a copy'n'paste bug?


Regards,

       Jon



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org