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 boldrin is currently offline gabriele boldrinFriend
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.


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)

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: Fri Nov 27 17:16:46 GMT 2015

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

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