tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r569194 - /incubator/tuscany/java/sca/modules/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/JavaInterfaceGenerator.java
Date Fri, 24 Aug 2007 00:15:13 GMT
Author: lresende
Date: Thu Aug 23 17:15:12 2007
New Revision: 569194

URL: http://svn.apache.org/viewvc?rev=569194&view=rev
Log:
Adding a second constructor to the generated fault class to comply with JAX-WS spec

Modified:
    incubator/tuscany/java/sca/modules/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/JavaInterfaceGenerator.java

Modified: incubator/tuscany/java/sca/modules/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/JavaInterfaceGenerator.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/JavaInterfaceGenerator.java?rev=569194&r1=569193&r2=569194&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/JavaInterfaceGenerator.java
(original)
+++ incubator/tuscany/java/sca/modules/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/JavaInterfaceGenerator.java
Thu Aug 23 17:15:12 2007
@@ -295,9 +295,14 @@
             stream.println();
             stream.println("public class " + faultWrapperClassName  + " extends Exception
{");
             stream.println();
-            stream.println("    private " + faultWrapperClassName + " fault;");
+            stream.println("    private " + faultClassName + " fault;");
             stream.println();
-            stream.println("    public " + faultWrapperClassName + "(String message, " +
faultWrapperClassName + " fault, Throwable cause) {");
+            stream.println("    public " + faultWrapperClassName + "(String message, " +
faultClassName + " fault) {");
+            stream.println("        super(message);");
+            stream.println("        this.fault = fault;");
+            stream.println("    }");
+            stream.println();
+            stream.println("    public " + faultWrapperClassName + "(String message, " +
faultClassName + " fault, Throwable cause) {");
             stream.println("        super(message, cause);");
             stream.println("        this.fault = fault;");
             stream.println("    }");
@@ -305,7 +310,7 @@
             stream.println("    public static QName FAULT_ELEMENT = new QName(\"" + faultMsgPartElementQName.getNamespaceURI()
+ 
                     "\",\"" + faultMsgPartElementQName.getLocalPart() + "\");");
             stream.println();
-            stream.println("    public " + faultWrapperClassName + " getFaultInfo() {");
+            stream.println("    public " + faultClassName + " getFaultInfo() {");
             stream.println("        return this.fault;");
             stream.println("    }");
             stream.println("}");



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message