You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by na...@apache.org on 2006/07/12 00:35:20 UTC

svn commit: r421017 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/CUtils.java

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