-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hi all,
Using this meta-model (a small subset of the ecore meta-model):
<?xml version="1.0" encoding="UTF-8"?> <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="smallEcore" nsURI="http://www.example.org/smallEcore" nsPrefix="smallEcore"> <eClassifiers xsi:type="ecore:EClass" name="ENamedElement" abstract="true"> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="EClassifier" abstract="true" eSuperTypes="#//ENamedElement"> <eStructuralFeatures xsi:type="ecore:EReference" name="ePackage" eType="#//EPackage" eOpposite="#//EPackage/eClassifiers"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="EClass" eSuperTypes="#//EClassifier"> <eStructuralFeatures xsi:type="ecore:EAttribute" name="abstract" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EReference" name="eStructuralFeatures" upperBound="-1" eType="#//EStructuralFeature" containment="true" eOpposite="#//EStructuralFeature/eContainingClass"/> <eStructuralFeatures xsi:type="ecore:EReference" name="eSuperTypes" upperBound="-1" eType="#//EClass"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="ETypedElement" abstract="true" eSuperTypes="#//ENamedElement"> <eStructuralFeatures xsi:type="ecore:EAttribute" name="lowerBound" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="upperBound" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> <eStructuralFeatures xsi:type="ecore:EReference" name="eType" eType="#//EClassifier"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="EStructuralFeature" abstract="true" eSuperTypes="#//ETypedElement"> <eStructuralFeatures xsi:type="ecore:EReference" name="eContainingClass" eType="#//EClass" eOpposite="#//EClass/eStructuralFeatures"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="EReference" eSuperTypes="#//EStructuralFeature"> <eStructuralFeatures xsi:type="ecore:EAttribute" name="containment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EReference" name="eOpposite" eType="#//EReference"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="EAttribute" eSuperTypes="#//EStructuralFeature"/> <eClassifiers xsi:type="ecore:EClass" name="EPackage" eSuperTypes="#//ENamedElement"> <eStructuralFeatures xsi:type="ecore:EReference" name="eClassifiers" upperBound="-1" eType="#//EClassifier" containment="true" eOpposite="#//EClassifier/ePackage"/> <eStructuralFeatures xsi:type="ecore:EReference" name="epackage" upperBound="-1" eType="#//EPackage" containment="true"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="EDataType" eSuperTypes="#//EClassifier"/> <eClassifiers xsi:type="ecore:EClass" name="EEnum" eSuperTypes="#//EDataType"/> </ecore:EPackage>
I obtain the following error:
INFORMACIÓN: Config parameters: range for properties number is [7, 9] feb. 14, 2021 2:21:34 P. M. fr.inria.atlanmod.instantiator.GenericMetamodelGenerator runGeneration INFORMACIÓN: Config parameters: range for references number is [7, 9] feb. 14, 2021 2:21:34 P. M. fr.inria.atlanmod.instantiator.GenericMetamodelGenerator runGeneration INFORMACIÓN: Config parameters: range for values length is [58, 70] feb. 14, 2021 2:21:34 P. M. fr.inria.atlanmod.instantiator.GenericMetamodelGenerator runGeneration INFORMACIÓN: Start generation of resource ./smallEcore/result0_100.xmi with an average size of 100 elements ERROR: lower bound (0) must be strictly less than upper bound (-1)
This error does not occur when I delete the epackage reference of EPackage metaclass that is:
<eStructuralFeatures xsi:type="ecore:EReference" name="epackage" upperBound="-1" eType="#//EPackage" containment="true"/>