Re: UML 15 association and CompositeViolation

"Anders W. Tell" <[email protected]> Tue, 19 Aug 2003 16:46:14 +0200
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Organization Financial Toolsmiths AB
Message-ID <[email protected]>
No the original question was that below throws an exceptionn

as.refSetValue("namespace", pkg)
aEnd.refSetValue("namespace", pkg)
aEnd.refSetValue("association", as) ---> throws exception


as.refSetValue("namespace", pkg)
aEnd.refSetValue("namespace", as)
aEnd.refSetValue("association", as) --> OK


/ander

Stefan Ocke wrote:

>
>
>  
>
>>There are two (unrelated) references
>>
>>ModeElement[0..*] <-> [0..1]Namespace
>>and
>>Association[1..1] <-> [2..*]AssociationEnd.
>>
>>and
>>aEnd.refSetValue("namespace", as)
>>aEnd.refSetValue("association", as)
>>
>>is accepted by the MDR's JMI impl.
>>
>>    
>>
>
>Wasn't your original problem that this peace of code throws the
>CompositeViolationException?
>Well, exactly this exception is JMI's way to tell, that this code is not
>okay...
>
>Stefan.
>
>
>
>  
>