tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1183260 - /tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java
Date Fri, 14 Oct 2011 09:29:40 GMT
Author: antelder
Date: Fri Oct 14 09:29:40 2011
New Revision: 1183260

URL: http://svn.apache.org/viewvc?rev=1183260&view=rev
Log:
Ensure the old normalized wsdl contract isn't left in the cloned contract

Modified:
    tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java?rev=1183260&r1=1183259&r2=1183260&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java
Fri Oct 14 09:29:40 2011
@@ -1187,6 +1187,7 @@ public class ComponentBuilderImpl {
                 InterfaceContract contract = (InterfaceContract)service.getInterfaceContract().clone();
                 contract.setInterface(contract.getCallbackInterface());
                 contract.setCallbackInterface(null);
+                contract.setNormalizedWSDLContract(null);
                 callbackReference.setInterfaceContract(contract);
             } catch (CloneNotSupportedException e) {
                 // will not happen
@@ -1244,6 +1245,7 @@ public class ComponentBuilderImpl {
                     InterfaceContract implContract = (InterfaceContract)implService.getInterfaceContract().clone();
                     implContract.setInterface(implContract.getCallbackInterface());
                     implContract.setCallbackInterface(null);
+                    implContract.setNormalizedWSDLContract(null);
                     implReference.setInterfaceContract(implContract);
                 } catch (CloneNotSupportedException e) {
                     // will not happen
@@ -1302,6 +1304,7 @@ public class ComponentBuilderImpl {
                 InterfaceContract contract = (InterfaceContract)reference.getInterfaceContract().clone();
                 contract.setInterface(contract.getCallbackInterface());
                 contract.setCallbackInterface(null);
+                contract.setNormalizedWSDLContract(null);
                 callbackService.setInterfaceContract(contract);
             } catch (CloneNotSupportedException e) {
                 // will not happen
@@ -1359,6 +1362,7 @@ public class ComponentBuilderImpl {
                     InterfaceContract implContract = (InterfaceContract)implReference.getInterfaceContract().clone();
                     implContract.setInterface(implContract.getCallbackInterface());
                     implContract.setCallbackInterface(null);
+                    implContract.setNormalizedWSDLContract(null);
                     implService.setInterfaceContract(implContract);
                 } catch (CloneNotSupportedException e) {
                     // will not happen



Mime
View raw message