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.
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.
Created attachment 22912 [details] Patch to build.xml and org.netbeans.lib.jmi.uml2mof.Transformer
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