Index: lams_common/src/java/org/lamsfoundation/lams/util/wddx/WDDXProcessor.java =================================================================== RCS file: /usr/local/cvsroot/lams_common/src/java/org/lamsfoundation/lams/util/wddx/WDDXProcessor.java,v diff -u -r1.9 -r1.10 --- lams_common/src/java/org/lamsfoundation/lams/util/wddx/WDDXProcessor.java 4 Oct 2006 08:57:22 -0000 1.9 +++ lams_common/src/java/org/lamsfoundation/lams/util/wddx/WDDXProcessor.java 10 Sep 2007 03:31:26 -0000 1.10 @@ -397,7 +397,8 @@ } } - /** Convert a string to an string. + /** Convert an object to an string. If it isn't a string already, uses toString(). + * There is the odd case where we may wish to convert a number to a string. * If it gets any of the NULL value objects (see WDDXTAGS) then it will return null * * @param identifier - name of value being converted - using in the exception thrown @@ -414,7 +415,11 @@ } try { - return (String) value; + if ( value instanceof String ) { + return (String) value; + } else { + return value.toString(); + } } catch ( Exception e2) { throw new WDDXProcessorConversionException("Unable to convert value "+identifier+":"+value+" to an String"); }