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 37526 - Problems importing a CWM based mode from XMI
Summary: Problems importing a CWM based mode from XMI
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-26 13:58 UTC by jfrank
Modified: 2003-11-26 21:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Simple application that reproduces the error (602.15 KB, application/octet-stream)
2003-11-26 14:19 UTC, jfrank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jfrank 2003-11-26 13:58:08 UTC
An InvalidRefCallException is thrown when trying 
to import a simple CWM based model XMI into an 
instance of a CWM package.

Test application reproducing the error is 
attached.
Comment 1 jfrank 2003-11-26 14:19:04 UTC
Created attachment 12319 [details]
Simple application that reproduces the error
Comment 2 Martin Matula 2003-11-26 21:02:04 UTC
Hi Jose,
the application does not work because there is a number of
associations in CWM metamodel that are marked as protected. Since the
behavior for visibility other than public is not specified in MOF,
this will not work and the metamodel can be considered as not
wellformed. When I was trying to simulate your problem for the first
time, I haven't realized that I changed my copy of the metamodel long
time ago so that all associations are public. You can do the same
thing to make it work - just replace all occurrences of
"protected_vis" by "public_vis" in the XML file. If you have time, you
may also try to automate this process for future users by extending
our XMI diff file for CWM to do this change.
After you do that, you will need to regenerate the JMI interfaces for
CWM, since the interfaces for protected associations were not
generated previously.
Martin
Comment 3 Martin Matula 2003-11-26 21:04:37 UTC
Sorry for calling you Jose :). I've just realized that your name is
Javier. Apologies...