axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r421017 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/CUtils.java
Date Tue, 11 Jul 2006 22:35:20 GMT
Author: nadiramra
Date: Tue Jul 11 15:35:19 2006
New Revision: 421017

URL: http://svn.apache.org/viewvc?rev=421017&view=rev
Log:
fixed compile error

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/CUtils.java

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/CUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/CUtils.java?rev=421017&r1=421016&r2=421017&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/CUtils.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/CUtils.java Tue Jul 11
15:35:19 2006
@@ -1099,10 +1099,15 @@
             // Anonymous names start with '>'. For example, '>Type'. However, if it
was 
             // nested, then it would be something like '>>Type>Type2'. 
             // We should really be nice and get the name after last '>', but at this 
-            // time we will simply by-pass starting '>' and start with the first 
-            // character not equal to '>'.          
-            for (i=0; oldName.charAt(i) == SymbolTable.ANON_TOKEN; ++i);
-            newName = oldName.substring(i);
+            // time we will simply generate a name starting at last instance of '>'. 

+            i = oldName.lastIndexOf(SymbolTable.ANON_TOKEN);     
+            if (i > 0)
+                newName  = oldName.substring(i);
+            else
+                newName = oldName;
+
+            //for (i=0; oldName.charAt(i).equals(SymbolTable.ANON_TOKEN); ++i);
+            //newName = oldName.substring(i);
             
             // Ensure invalid characters are replaced
             for(i=0; i < Array.getLength(invalidCChars); i++)



---------------------------------------------------------------------
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