Validation Error Because of Missing Constraints Annotation in Identifier Model

Description

I experience an issue when creating a generator model for a meta model that references the identifier meta model (version 2.1). While loading my meta model all references meta models are validated. The validation for the Identifier meta model, however, fails with the error message

Missing '[http://www.eclipse.org/emf/2002/Ecore::constraints'] annotation for 'org.eclipse.emf.ecore.impl.EClassImpl@1b0f8974{platform:/plugin/de.uka.ipd.sdq.identifier/model/identifier.ecore#//Identifier}'

There are also several warnings about a namespace annotation that will be ignored. The annotation is located at the id attribute and gives the namespace http://sdq.ipd.uka.de/Identifier/1.0, which is clearly outdated.

I suggest adding the missing annotation and removing the ExtendedMetaData tag that only includes the invalid namespace annotation.

Environment

None

Activity

Show:
Stephan Seifermann
September 27, 2018, 5:07 PM

Included in the nightly code base. To be released in a minor release.

Stephan Seifermann
September 19, 2018, 3:17 PM

Sorry, I did not refresh the page before creating the comment. Yes, I am using Photon and did not experience the issue in Oxygen before.

Anyway, we should fix the issue because the new default should be Photon.

Stephan Seifermann
September 19, 2018, 3:16 PM

I created a pull request and ask you () to review the proposed changes.

Steffen Becker
September 19, 2018, 2:55 PM

I assume this is all cause by a more recent Eclipse than the one the MM was last developped with Which Eclipse version is it? Just for further reference if someone finds this issue. Otherwise the solution seems to be straight forward.

Fixed

Assignee

Stephan Seifermann

Reporter

Stephan Seifermann

Labels

None

Requirement Category

None

External issue URL

None

Severity

None

Priority

None

Status Whiteboard

None

External issue ID

None

Fix versions

Affects versions

Priority

Major