axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r358887 - /webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/java2wsdl/bytecode/ChainedParamReader.java
Date Sat, 24 Dec 2005 00:07:52 GMT
Author: dims
Date: Fri Dec 23 16:07:48 2005
New Revision: 358887

URL: http://svn.apache.org/viewcvs?rev=358887&view=rev
Log:
fix recursion look up the class hierarchy

Modified:
    webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/java2wsdl/bytecode/ChainedParamReader.java

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/java2wsdl/bytecode/ChainedParamReader.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/java2wsdl/bytecode/ChainedParamReader.java?rev=358887&r1=358886&r2=358887&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/java2wsdl/bytecode/ChainedParamReader.java
(original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/java2wsdl/bytecode/ChainedParamReader.java
Fri Dec 23 16:07:48 2005
@@ -75,7 +75,7 @@
         }
         //if we here, it means we need to create new chain.
         Class cls = (Class) clsChain.get(chain.size() - 1);
-        while (cls.getSuperclass() != null) {
+        while (cls != null && cls != java.lang.Object.class && cls.getSuperclass()
!= null) {
             Class superClass = cls.getSuperclass();
             try {
                 ParamReader _reader = new ParamReader(superClass);
@@ -90,6 +90,7 @@
                 //can not find the super class in the class path, abort here
                 return null;
             }
+            cls = superClass;
         }
         methodToParamMap.put(method, ret);
         return null;



Mime
View raw message