ServiceContract clone() doesn't clone Operations()
--------------------------------------------------

                 Key: TUSCANY-1146
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1146
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Core
    Affects Versions: Java-M2
            Reporter: Scott Kurz
             Fix For: Java-SCA-integration


ServiceContract.clone()  does:

        if (operations != null) {
            Map<String, Operation<T>> clonedOperations = new HashMap<String, 
Operation<T>>();
            for (Operation<T> o : operations.values()) {
                clonedOperations.put(o.getName(), o);
            }
            copy.setOperations(clonedOperations);
        }

This is going to interfere with the 'operations' of the original 
ServiceContract (since setOperations points the Operations to the new SC).   We 
should have cloned the operations I believe.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to