diff options
Diffstat (limited to 'java/sca/modules/builder')
-rw-r--r-- | java/sca/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeCloneBuilderImpl.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/sca/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeCloneBuilderImpl.java b/java/sca/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeCloneBuilderImpl.java index 73626243e5..d59c85d5c6 100644 --- a/java/sca/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeCloneBuilderImpl.java +++ b/java/sca/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeCloneBuilderImpl.java @@ -47,13 +47,14 @@ public class CompositeCloneBuilderImpl implements CompositeBuilder { // Try to avoid clone for top-level composites that are added to the domain composite for (Composite included : composite.getIncludes()) { cloneIncludes(included); + cloneCompositeImplementations(included); } } else { // Clone the includes cloneIncludes(composite); + cloneCompositeImplementations(composite); } - cloneCompositeImplementations(composite); return composite; } |