eclipse-uml2 / uml2

An EMF-based implementation of the UML 2.x metamodel for the Eclipse platform.
Eclipse Public License 2.0
5 stars 4 forks source link

UML 2.5 tooling cannot read the UML 2.5 serialisation of UML 2.5.1 #100

Open eclipse-uml2-bot opened 1 week ago

eclipse-uml2-bot commented 1 week ago

| --- | --- | | Bugzilla Link | 562833 | | Status | NEW | | Importance | P3 normal | | Reported | May 05, 2020 09:30 EDT | | Modified | May 06, 2020 04:00 EDT | | See also | 562862 | | Reporter | Ed Willink |

Description

Once 20131001 family namespaces are available, separate bug, attempting to load https://www.omg.org/spec/UML/20161101/UML.xmi which is a UML 2.5 serialization fails with (using repro approach below)

org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'null' not found. (platform:/resource/org.eclipse.uml2/model/UML.xmi, 3, 17)

org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'documentation' is not found or is abstract. (platform:/resource/org.eclipse.uml2/model/UML.xmi, 3, 17)\ \ This is caused by a documentation preamble

<?xml version="1.0" encoding="UTF-8"?>\ <xmi:XMI xmlns:uml="http://www.omg.org/spec/UML/20131001"\ xmlns:xmi="http://www.omg.org/spec/XMI/20131001"\ xmlns:mofext="http://www.omg.org/spec/MOF/20131001">\

\ UML.xmi: XMI representation of the metamodel for UML 2.5.1.\ \ and then open with the UML Model Editor. It appears that child xmi elements are not honored. (Workaround use xmi:Documentation but OMG didn't do that.) ---- Additional confusion, the spelling of "documentation" has been consistent in the diagrams of the XMI 2.0 and later specification and in http://www.omg.org/spec/XMI/20110701/XMI.xsd, but up until XMI 2.5.1 and https://issues.omg.org/issues/XMI24-178, the spelling is also "Documentation" in the inline exposition of the XSD. 7.5.5
eclipse-uml2-bot commented 1 week ago

By Ed Willink on May 05, 2020 10:07

(In reply to Ed Willink from comment #0)

Once 20131001 family namespaces are available, separate bug

No once I get rid of my pre-UML-2.5 prototype declarations, the 20131001 family names seem good.

eclipse-uml2-bot commented 1 week ago

By Ed Willink on May 05, 2020 14:46

This all comes from https://www.eclipse.org/forums/index.php?t=msg&th=1103625&goto=1826867&#msg_1826867 where German Vega discovers that XMI 2.5.1 prohibits unqualified "documentation". It looks as if the UML 2.5.1 UML.xmi is illegal.

Have to see how https://issues.omg.org/browse/UMLR-771 fares.