summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--branches/sca-java-1.x/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeReferenceImpl.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/branches/sca-java-1.x/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeReferenceImpl.java b/branches/sca-java-1.x/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeReferenceImpl.java
index 4348e08fcb..bebc9e3619 100644
--- a/branches/sca-java-1.x/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeReferenceImpl.java
+++ b/branches/sca-java-1.x/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeReferenceImpl.java
@@ -6,15 +6,15 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
- * under the License.
+ * under the License.
*/
package org.apache.tuscany.sca.assembly.impl;
@@ -27,7 +27,7 @@ import org.apache.tuscany.sca.assembly.CompositeReference;
/**
* Represents a composite reference.
- *
+ *
* @version $Rev$ $Date$
*/
public class CompositeReferenceImpl extends ReferenceImpl implements CompositeReference, Cloneable {
@@ -38,10 +38,12 @@ public class CompositeReferenceImpl extends ReferenceImpl implements CompositeRe
*/
protected CompositeReferenceImpl() {
}
-
+
@Override
public Object clone() throws CloneNotSupportedException {
- return super.clone();
+ CompositeReferenceImpl copy = (CompositeReferenceImpl)super.clone();
+ copy.promotedReferences = new ArrayList<ComponentReference>(promotedReferences);
+ return copy;
}
public List<ComponentReference> getPromotedReferences() {