cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1065609 - /cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/TypeDclVisitor.java
Date Mon, 31 Jan 2011 13:38:04 GMT
Author: ffang
Date: Mon Jan 31 13:38:03 2011
New Revision: 1065609

URL: http://svn.apache.org/viewvc?rev=1065609&view=rev
Log:
[CXF-3297]idl2wsdl fails with NPE if IDL contains typeprefix keyword

Modified:
    cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/TypeDclVisitor.java

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/TypeDclVisitor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/TypeDclVisitor.java?rev=1065609&r1=1065608&r2=1065609&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/TypeDclVisitor.java
(original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/TypeDclVisitor.java
Mon Jan 31 13:38:03 2011
@@ -70,6 +70,11 @@ public class TypeDclVisitor extends Visi
             //
             // native type not supported
             throw new RuntimeException("[TypeDclVisitor: native type not supported!]");
+        }  else if (node.getType() == IDLTokenTypes.LITERAL_typeprefix) {
+            // typeprefix <scoped_name> <string_literal>
+            // typeprefix not supported
+            // keyword since CORBA 3.0
+            throw new RuntimeException("[TypeDclVisitor: typeprefix not supported!]");
         }
 
         // TODO forward declaration <constr_forward_declaration>



Mime
View raw message