Author: sagara Date: Thu Nov 24 03:35:36 2011 New Revision: 1205716 URL: http://svn.apache.org/viewvc?rev=1205716&view=rev Log: Fixed AXIS2-5195 - A new check added so that it will not process xsi;type attribute when processing arrays.
Modified: axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java Modified: axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java?rev=1205716&r1=1205715&r2=1205716&view=diff ============================================================================== --- axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java (original) +++ axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java Thu Nov 24 03:35:36 2011 @@ -456,8 +456,11 @@ public class BeanUtil { // to support polymorphism in POJO approach. // Retrieve the type name of the instance from the 'type' attribute // and retrieve the class. - - String instanceTypeName = beanElement.getAttributeValue(new QName(Constants.XSI_NAMESPACE, "type")); + String instanceTypeName = null; + if (beanClass != null && !beanClass.isArray()) { + instanceTypeName = beanElement.getAttributeValue(new QName( + Constants.XSI_NAMESPACE, "type")); + } boolean hexBin = false; if (instanceTypeName != null) { MessageContext messageContext = MessageContext.getCurrentMessageContext();