From c7fdc82a82af045b591d02bfa9d39f26d28ad4e5 Mon Sep 17 00:00:00 2001 From: antelder Date: Fri, 14 Oct 2011 09:29:40 +0000 Subject: Ensure the old normalized wsdl contract isn't left in the cloned contract git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1183260 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sca-java-2.x/trunk/modules/builder/src/main/java/org/apache') diff --git a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java index c1796c3ca2..2d22c2effe 100644 --- a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java +++ b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java @@ -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 -- cgit v1.2.3