cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1461285 - in /cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws: generators/FaultGenerator.java template/fault.vm
Date Tue, 26 Mar 2013 19:53:45 GMT
Author: dkulp
Date: Tue Mar 26 19:53:45 2013
New Revision: 1461285

URL: http://svn.apache.org/r1461285
Log:
Fix issue with exception superclasses not having the imports set.

Modified:
    cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
    cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/fault.vm

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java?rev=1461285&r1=1461284&r2=1461285&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
Tue Mar 26 19:53:45 2013
@@ -129,7 +129,10 @@ public class FaultGenerator extends Abst
                     exceptionSuperclassString = exceptionSuperclass;
                 }
                 setAttributes("exceptionSuperclass", exceptionSuperclassString);
-
+                if (!exceptionSuperclass.startsWith("java.lang.")
+                    && !exceptionSuperclassString.equals(exceptionSuperclass)) {
+                    expClz.addImport(exceptionSuperclass);
+                }
                 setCommonAttributes();
                 doWrite(FAULT_TEMPLATE, parseOutputName(expClz.getPackageName(),
                         expClz.getName()));

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/fault.vm
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/fault.vm?rev=1461285&r1=1461284&r2=1461285&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/fault.vm
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/fault.vm
Tue Mar 26 19:53:45 2013
@@ -21,6 +21,9 @@ package $expClass.PackageName;
 import javax.annotation.Generated;
 #end
 import javax.xml.ws.WebFault;
+#foreach ($import in $expClass.Imports)
+import ${import};
+#end
 
 
 /**



Mime
View raw message