Two questions if I may,
Question # 1When a base use case "A"
includes, or is
extended by use case "B", the logical merging of the behavior specifications takes place at the level of the Basic Flow, Alternative Flows, and/or the Named Sub-flows (and possibly others). In the Alternative and Named Sub-flows, each behavior fragment has a name. (Obviously, I'm in the context of a textual use case specification and not a UML Diagram

It is possible that specifications for both use cases A and B end up with behavior fragments having the same name but different behavior specifications. Note: I'm not saying that this is correct or incorrect at this point, only that my use case writing tool (MS Notepad

)allows this to happen.
My question is: Within the Alternative Flows and/or Named-Sub-flows sections, how does one interpret the behavior fragment specification in the face of behavior specifications having the same name?
- Is this invalid?
- Are the two merged in some way? If so, how is that done?
- Do the included or extension fragments redefine the base specification?
- Do I get to choose by providing a specialization of the <<include>> and <<extend>> relations that determines how to interpret the merge?
From comments in the UML 2 Superstructure, they (the OMG/UML committee) plan to remain silent on this issue.
Question # 2Logically, <<include>> and <<extend>> are relations between use case
specifications. They are
not run-time relations between use case
objects (scenarios) or "Emergent behaviors" as the UML Superstructure refers to them.
Has anyone thought about or used (perhaps a guarded) <<inject>> type relation to specify a run-time use case extension?
This may be helpful in Aspect Oriented or Dependency Injection ontologies. I would argue against a run-time specialization of the <<include>>; that would really invite the functional decomposition bad guy. Jacobson mused about this in a recient paper of his.
Are there any best practices on this? (This is not a third question; it <<extends>> questions #s 1 and 2 above.

)