cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1155112 - /cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
Date Mon, 08 Aug 2011 21:28:57 GMT
Author: dkulp
Date: Mon Aug  8 21:28:57 2011
New Revision: 1155112

URL: http://svn.apache.org/viewvc?rev=1155112&view=rev
Log:
[CXF-3625] Fix issue with a generated "Exception" type could cause
uncompilable code.

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

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=1155112&r1=1155111&r2=1155112&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
Mon Aug  8 21:28:57 2011
@@ -113,8 +113,12 @@ public class FaultGenerator extends Abst
                     }
                     setAttributes("paraName", ProcessorUtil.mangleNameToVariableName(jf.getName()));
                 }
-                
-                
+                ClassCollector collector = penv.get(ClassCollector.class);
+                for (String pkg : collector.getTypesPackages()) {
+                    if (collector.containTypesClass(pkg, "Exception")) {
+                        exceptionSuperclass = "java.lang.Exception";
+                    }
+                }
                 if (expClz.getName().equals(exceptionSuperclass)) {
                     exceptionSuperclass = "java.lang.Exception";
                 }



Mime
View raw message