db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Purvis" <...@reeltwo.com>
Subject [village] Value.asDouble uses Integer.valueOf to parse strings
Date Wed, 19 Apr 2006 04:32:24 GMT
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

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



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

View raw message