You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2011/01/31 14:38:04 UTC

svn commit: r1065609 - /cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/TypeDclVisitor.java

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>