Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » IllegalArgumentException: feature not found in EClass
IllegalArgumentException: feature not found in EClass [message #1149961] Tue, 22 October 2013 12:31
gabriele Mising name is currently offline gabriele Mising nameFriend
Messages: 19
Registered: December 2009
Junior Member
Hi Martin,

For the generation I still use the xpand templates.
I have notice that the generated code with the template xpand is not equal to that generated with template xtext.

index.php/fa/16517/0/

I am attaching a simple example.

Also if I use very large models, the method eGet of modelObject

public Object eGet (EStructuralFeature eStructuralFeature) {
          ....
final int FeatureId = eClass (). getFeatureID (eStructuralFeature);
         .....
}

throws me an exception java.lang.IllegalArgumentException

Caused by: java.lang.IllegalArgumentException: EStructuralFeature: org.eclipse.emf.ecore.impl.EAttributeImpl@2583ed5 (name: documentIds) (ordered: true, unique: true, lowerBound: 0, upperBound: -1) (changeable: true, volatile: false, transient: false, defaultValueLiteral: null, unsettable: false, derived: false) (iD: false) not found in EClass com.nterpriseapps.model.internal.metadata.ExtensibleEClassImpl@755a9420 (name: Bond) (instanceClassName: null) (abstract: false, interface: false)
org.eclipse.emf.texo.model.AbstractModelObject.eGet(AbstractModelObject.java:59)
com.nterpriseapps.mdl.catalogue.core.CatalogueModelFactory$CatalogueItemModelObject.eGet(CatalogueModelFactory.java:2688)
.....


The method fails to find a feature that is inherited from an interface.
Previous Topic:Undo throws 'no duplicates' constraint in eclipse juno
Next Topic:Get all EClasses of a model
Goto Forum:
  


Current Time: Thu Mar 28 08:10:29 GMT 2024

Powered by FUDForum. Page generated in 0.02578 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top