Author: amilas
Date: Sun May 9 06:01:05 2010
New Revision: 942492
URL: http://svn.apache.org/viewvc?rev=942492&view=rev
Log:
use toPlainString method as given in the AXIS2-4036
Modified:
axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
Modified:
axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java?rev=942492&r1=942491&r2=942492&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
(original)
+++
axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
Sun May 9 06:01:05 2010
@@ -1427,7 +1427,7 @@ public class ConverterUtil {
} else if (value instanceof Short) {
serializeAnyType("short", value.toString(), xmlStreamWriter);
} else if (value instanceof BigDecimal) {
- serializeAnyType("decimal", value.toString(), xmlStreamWriter);
+ serializeAnyType("decimal", ((BigDecimal)value).toPlainString(),
xmlStreamWriter);
} else if (value instanceof DataHandler) {
addTypeAttribute(xmlStreamWriter,"base64Binary");
try {
@@ -1643,4 +1643,5 @@ public class ConverterUtil {
}
}
+
}