axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r649395 - /webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Date Fri, 18 Apr 2008 07:44:19 GMT
Author: deepal
Date: Fri Apr 18 00:44:17 2008
New Revision: 649395

URL: http://svn.apache.org/viewvc?rev=649395&view=rev
Log:
fixing https://issues.apache.org/jira/browse/AXIS2-3752

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=649395&r1=649394&r2=649395&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
Fri Apr 18 00:44:17 2008
@@ -158,6 +158,9 @@
             HashMap propertMap = new HashMap();
             for (int i = 0; i < propDescs.length; i++) {
                 PropertyDescriptor propDesc = propDescs[i];
+                if (propDesc.getName().equals("class")) {
+                    continue;
+                }
                 propertMap.put(propDesc.getName(), propDesc);
             }
             ArrayList object = new ArrayList();
@@ -166,7 +169,10 @@
                 PropertyDescriptor propDesc = (PropertyDescriptor)propertMap.get(
                         getCorrectName(property.getSimpleName()));
                 if (propDesc == null) {
-                    // JAM does bad thing so I need to add this
+                    propDesc = (PropertyDescriptor)propertMap.get(
+                        (property.getSimpleName()));
+                }
+                 if (propDesc == null) {
                     continue;
                 }
                 Class ptype = propDesc.getPropertyType();
@@ -313,13 +319,13 @@
                                      boolean processingDocLitBare) {
         if (elemntNameSpace != null) {
             object.add(new QName(elemntNameSpace.getNamespaceURI(),
-                    propDesc.getName(), elemntNameSpace.getPrefix()));
+                   getCorrectName(propDesc.getName()) , elemntNameSpace.getPrefix()));
         } else {
             if(processingDocLitBare){
-                object.add(new QName(propDesc.getName()));
+                object.add(new QName(getCorrectName(propDesc.getName())));
             } else {
                 object.add(new QName(beanName.getNamespaceURI(),
-                        propDesc.getName(), beanName.getPrefix()));
+                        getCorrectName(propDesc.getName()), beanName.getPrefix()));
             }
 
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message