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 60557 - UML2MOF not recognizing "enumeration" stereotype
Summary: UML2MOF not recognizing "enumeration" stereotype
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-28 00:33 UTC by jackknifebarber
Modified: 2005-09-05 10:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch to build.xml and org.netbeans.lib.jmi.uml2mof.Transformer (2.93 KB, patch)
2005-06-28 00:34 UTC, jackknifebarber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jackknifebarber 2005-06-28 00:33:17 UTC
I'm unable to get a Class with <<enumeration>> stereotype recognized as an
enumeration.  My UML/XMI is produced by Poseidon For UML 3.0.

I noticed in the XMI that I have two separate elements representing the
"enumeration" stereotype:

  <UML:Stereotype xmi.id="I1257d30m1037ff88d61mm7f19" name="enumeration" 
isSpecification="false" isRoot="false" isLeaf="false" isAbstract="false">
    <UML:Stereotype.baseClass>Class</UML:Stereotype.baseClass>
  </UML:Stereotype>
  <UML:Stereotype xmi.id="I1257d30m1037ff88d61mm7f15" name="enumeration" 
isSpecification="false" isRoot="false" isLeaf="false" isAbstract="false">
    <UML:Stereotype.baseClass>DataType</UML:Stereotype.baseClass>
  </UML:Stereotype>

This runs afoul of the cached map of Stereotypes by name in Transformer, which
ends up containing only one of them.

Also, I found I had to make a minor patch to build.xml in order to build
uml2mof with the current sources.
Comment 1 jackknifebarber 2005-06-28 00:34:49 UTC
Created attachment 22912 [details]
Patch to build.xml and org.netbeans.lib.jmi.uml2mof.Transformer
Comment 2 Martin Matula 2005-06-28 14:11:49 UTC
Integrated.

Checking in extras/mdrant/build.xml;
/cvs/mdr/extras/mdrant/build.xml,v  <--  build.xml
new revision: 1.7; previous revision: 1.6
done
Checking in extras/uml2mof/build.xml;
/cvs/mdr/extras/uml2mof/build.xml,v  <--  build.xml
new revision: 1.10; previous revision: 1.9
done
Checking in extras/uml2mof/src/org/netbeans/lib/jmi/uml2mof/Transformer.java;
/cvs/mdr/extras/uml2mof/src/org/netbeans/lib/jmi/uml2mof/Transformer.java,v  <--
 Transformer.java
new revision: 1.16; previous revision: 1.15
done