You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2008/02/13 05:14:34 UTC
svn commit: r627242 -
/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Author: deepal
Date: Tue Feb 12 20:14:33 2008
New Revision: 627242
URL: http://svn.apache.org/viewvc?rev=627242&view=rev
Log:
fixing problem of Object serialization
Modified:
webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java?rev=627242&r1=627241&r2=627242&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java Tue Feb 12 20:14:33 2008
@@ -106,7 +106,6 @@
elemntNameSpace = new QName(qNamefortheType.getNamespaceURI(),
"elementName");
}
-
AxisService axisService = null;
if (MessageContext.getCurrentMessageContext() != null) {
axisService = MessageContext.getCurrentMessageContext().getAxisService();
@@ -246,7 +245,17 @@
} else {
addTypeQname(elemntNameSpace, object, propDesc, beanName,processingDocLitBare);
Object value = propDesc.getReadMethod().invoke(beanObject,
- null);
+ null);
+ if ("java.lang.Object".equals(ptype.getName())){
+ if ((value instanceof Integer ) ||
+ (value instanceof Short) ||
+ (value instanceof Long) ||
+ (value instanceof Float)) {
+ object.add(value.toString());
+ continue;
+ }
+ }
+
object.add(value);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org