On Jan 23, 2007, at 10:01 AM, Jeremy Boynes wrote:

Do we?

Yep in CompositeComponentExtension.register(SCAObject)

I was looking at CompositeComponentType#getComponents and it does:
        for (Include i : includes.values()) {
            view.putAll(i.getIncluded().getComponents());
        }
which looks like it just drops duplicates.

Yes that is bad. I was referring to the above method

I think we should check in two places:
1) when adding a component, reference or service to the model that no other has the same name
2) when merging includes that there are no duplicates across the merge

+1 as long as it is not done implicit in the model (i.e. the model should have no behavior). I think that is aligned with what you say below w.r.t the builder.

I don't think the second should be done silently in getComponents() as that is a bit obscure - better to do an explicit check in the builder (until that check can be moved to verify).

--
Jeremy

On Jan 23, 2007, at 9:30 AM, Jim Marino wrote:


On Jan 23, 2007, at 9:00 AM, Jeremy Boynes wrote:

Isn't this a problem in the verify/build phase rather than the loader?
--
Jeremy

We already support this in the build phase. Ultimately this function would be moved into the verify phase but since we don't have it yet and the change is minimal, we can get it in and move it once I get to separating the phases.

Jim


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



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



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



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

Reply via email to