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 29590 - 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 DUPLICATE of bug 29589
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: 2002-12-17 09:07 UTC by _ briansmith
Modified: 2002-12-17 09:14 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:10:13 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:11 UTC
Sorry, there was a network problem. This is exactly the same as the
previous one.

*** This issue has been marked as a duplicate of 29589 ***