diff options
-rw-r--r-- | sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointReferenceBuilderImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointReferenceBuilderImpl.java b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointReferenceBuilderImpl.java index c60a497bad..ada790163f 100644 --- a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointReferenceBuilderImpl.java +++ b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointReferenceBuilderImpl.java @@ -417,6 +417,9 @@ public class EndpointReferenceBuilderImpl { // autowire case. We need to think about if there is a more correct answer. for (ComponentReference leafRef : leafComponentReferences){ int insertLocation = 0; + if (!leafRef.isNonOverridable()) { + leafRef.getEndpointReferences().clear(); + } for (EndpointReference epr : componentReference.getEndpointReferences()){ // copy the epr EndpointReference eprCopy = copyHigherReference(epr, leafRef); |