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

Summary: XmiReader does not convert Corba alias types correctly during MOF 1.3 -> MOF 1.4 conversion
Product: java Reporter: _ briansmith <briansmith>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

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 ***