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 23772 - Aggregated objects are not written into XMI
Summary: Aggregated objects are not written into XMI
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-21 09:20 UTC by Stepan Roh
Modified: 2002-07-19 15:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test case (2.14 KB, text/plain)
2002-05-21 09:21 UTC, Stepan Roh
Details
test model in XMI (3.21 KB, text/plain)
2002-05-21 09:22 UTC, Stepan Roh
Details
written XMI with two instances (before aggregation is created) (403 bytes, text/plain)
2002-05-21 09:23 UTC, Stepan Roh
Details
written XMI with only one instance (after aggregation is created) (559 bytes, text/plain)
2002-05-21 09:24 UTC, Stepan Roh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stepan Roh 2002-05-21 09:20:27 UTC
Objects in aggregation are not written into XMI.
Bug probably lies in XMIWriterImpl: in
writePackage() they are intentionally skipped
(there is a comment: "non-outermost instance is
serialized as a part of content of an outermost
instance"), but they are not written in
writeInstance().

Test case follows (no patch, sorry).
Comment 1 Stepan Roh 2002-05-21 09:21:14 UTC
Created attachment 5871 [details]
test case
Comment 2 Stepan Roh 2002-05-21 09:22:30 UTC
Created attachment 5872 [details]
test model in XMI
Comment 3 Stepan Roh 2002-05-21 09:23:16 UTC
Created attachment 5873 [details]
written XMI with two instances (before aggregation is created)
Comment 4 Stepan Roh 2002-05-21 09:24:11 UTC
Created attachment 5874 [details]
written XMI with only one instance (after aggregation is created)
Comment 5 Daniel Prusa 2002-05-22 16:31:26 UTC
Bug fixed in main trunk.

One remark: The attached test model uses "shared" aggregation type. 
Note that this type is not supported in MOF 1.4 (according to the 
specification), thus if encoutered mdr treats it as "none" aggregation 
type, i.e. it is not composite. It is better to use "none" 
or "composite" types only.