cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1063185 - in /cxf/trunk/tools/corba/src: main/java/org/apache/cxf/tools/corba/processors/idl/PortTypeVisitor.java test/resources/idl/PragmaPrefix.idl
Date Tue, 25 Jan 2011 09:32:09 GMT
Author: ffang
Date: Tue Jan 25 09:32:08 2011
New Revision: 1063185

URL: http://svn.apache.org/viewvc?rev=1063185&view=rev
Log:
[CXF-3286]idl2wsdl tool should be able to honor local keyword

Modified:
    cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/PortTypeVisitor.java
    cxf/trunk/tools/corba/src/test/resources/idl/PragmaPrefix.idl

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/PortTypeVisitor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/PortTypeVisitor.java?rev=1063185&r1=1063184&r2=1063185&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/PortTypeVisitor.java
(original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/PortTypeVisitor.java
Tue Jan 25 09:32:08 2011
@@ -82,8 +82,10 @@ public class PortTypeVisitor extends Vis
         // <interface_name> ::= <scoped_name>
         
         
-        AST identifierNode = node.getFirstChild();        
-        
+        AST identifierNode = node.getFirstChild();   
+        if (identifierNode.getText().equals("local")) {
+            identifierNode = identifierNode.getNextSibling();
+        }
         // Check if its a forward declaration
         if (identifierNode.getFirstChild() == null && identifierNode.getNextSibling()
== null) {
             visitForwardDeclaredInterface(identifierNode);        

Modified: cxf/trunk/tools/corba/src/test/resources/idl/PragmaPrefix.idl
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/test/resources/idl/PragmaPrefix.idl?rev=1063185&r1=1063184&r2=1063185&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/test/resources/idl/PragmaPrefix.idl (original)
+++ cxf/trunk/tools/corba/src/test/resources/idl/PragmaPrefix.idl Tue Jan 25 09:32:08 2011
@@ -13,7 +13,7 @@ module Test2 {
   const char NEW = '\65';
 #endif
 
-  interface ForTesting {
+  local interface ForTesting {
 
     void greetMe(in string who);
   };



Mime
View raw message