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 29589 - XmiReader does not convert Corba alias types correctly during MOF 1.3 -> MOF 1.4 conversion
Summary: XmiReader does not convert Corba alias types correctly during MOF 1.3 -> MOF ...
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: Daniel Prusa
URL:
Keywords:
: 29590 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-17 09:05 UTC by _ briansmith
Modified: 2004-08-16 08:46 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 _ briansmith 2002-12-17 09:05:52 UTC
1. Import the UML 1.4 metamodel into a new MOF extent.
2. Go to Data_Types::UnlimitedInteger
3. Switch the look on UnlimitedInteger to the
reflective view
4. Expand the "contents" node.
5. Expand the "type" node.

You will see the following:
package Data_Types {
   ...
   alias type Integer : PrimitiveTypes::Integer
   alias type UnlimitedInteger :
UnlimitedInteger::Integer
   {
      alias type Integer : PrimitiveTypes::Integer
   }
   ...
}

(a) The UnlimitedInteger alias type contains an
extra alias type that should not be there at all
(Data_Types::UnlimitedInteger::Integer)

(b) The UnlimitedInteger's type is set to be this
extraneous alias type (the correct type is
Data_Types::Integer).

This problem affects also the CWM metamodels.
Apparently it only happens when an alias type's
type is another alias type. For example,
Data_Types::String correctly references
PrimitiveTypes::String.

I believe that the faulty code is
XmiContent.resolveCorbaAlias(Node node).
Comment 1 _ briansmith 2002-12-17 09:14:10 UTC
*** Issue 29590 has been marked as a duplicate of this issue. ***
Comment 2 Daniel Prusa 2004-08-16 08:46:52 UTC
Checking in XmiContext.java;
/cvs/mdr/jmiutils/src/org/netbeans/lib/jmi/xmi/XmiContext.java,v  <--
 XmiContext.java
new revision: 1.2; previous revision: 1.1

Checking in XmiElement.java;
/cvs/mdr/jmiutils/src/org/netbeans/lib/jmi/xmi/XmiElement.java,v  <--
 XmiElement.java
new revision: 1.3; previous revision: 1.2