-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
For the case:
- An EClass containing an attribute
foo - An Aspect over this class declaring
foowith a default value
Can we consider the aspect has the priority?
It is breaking a test case in Melange. We load a model of merged Ecore + Aspect and try to access the attribute declared in the Aspect but we access the null value of the model.
Lines 800 to 817 in 5c35a83
| val gemocHackGetter = ''' | |
| try { | |
| for (java.lang.reflect.Method m : _self.getClass().getMethods()) { | |
| if (m.getName().equals("«IF f.type.simpleName == "boolean" || f.type.simpleName == "Boolean"»is«ELSE»get«ENDIF»«f.simpleName.substring(0,1).toUpperCase() + f.simpleName.substring(1)»") && | |
| m.getParameterTypes().length == 0) { | |
| Object ret = m.invoke(_self); | |
| if (ret != null) { | |
| return («f.type.type.qualifiedName») ret; | |
| }«IF !f.type.primitive» else { | |
| return null; | |
| } | |
| «ENDIF» | |
| } | |
| } | |
| } catch (Exception e) { | |
| // Chut ! | |
| } | |
| return «PROP_VAR_NAME».«f.simpleName»; |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels