This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 34752 - XMIWriter serializes associations incorrectly
Summary: XMIWriter serializes associations incorrectly
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-04 07:35 UTC by jto
Modified: 2003-08-04 13:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jto 2003-07-04 07:35:40 UTC
Association links that are not serialized by means of 
object references are represented in XMI by separate 'link 
elements'. These elements get the name of their association 
proxy as tag name. XMIWriter produces this tag name 
incorrectly.
The defect was observed using MDR 0.87, JMI Toolkit 0.77, 
UML 1.3 (OMG document 01-12-02.xml). The error can be 
reproduced by attaching an instance of metaclass 
TaggedValue to an instance of metaclass Class (i.e. 
UmlClass). The name of the association is 
AModelElementTaggedValue. There is only a reference for the 
association in metaclass TaggedValue. The association end 
at metaclass Class is composite. Both metaclasses are 
located in different metapackages. A simple example for 
this is:

<UML:Class xmi.id = 'a1' name = 'Testclass' visibility 
= 'public' isSpecification = 'false'
  isRoot = 'true' isLeaf = 'true' isAbstract = 'false' 
isActive = 'false'/>
<UML:TaggedValue xmi.id = 'a2' tag = 'persistence' value 
= 'persistent'/>
<UML:Extension_Mechanisms.A_modelElement_taggedValue>
  <UML:Class xmi.idref = 'a1'/>
  <UML:TaggedValue xmi.idref = 'a2'/>
</UML:Extension_Mechanisms.A_modelElement_taggedValue>

The tag 
name 'UML:Extension_Mechanisms.A_modelElement_taggedValue' 
is not correct and should 
be 'UML:A_modelElement_taggedValue'

The resulting XMI is not accepted by XMIReader.
Comment 1 Daniel Prusa 2003-08-04 13:08:18 UTC
fixed