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/17 15:49:52 UTC

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

Author: nadiramra
Date: Mon Jul 17 06:49:51 2006
New Revision: 422715

URL: http://svn.apache.org/viewvc?rev=422715&view=rev
Log:
Stage 1: Infrastructure to handle generation of unique names in order to better handle the
generation of anonymous type. 

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=422715&r1=422714&r2=422715&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 Mon Jul 17 06:49:51 2006
@@ -1098,16 +1098,8 @@
         {            
             // 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 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);
+            // We should really be nice and get the name after last '>', but will wait.            
+            newName = oldName;
             
             // 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