You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to deal with attribute both in EMF and in K3, the annotation processor currently use a strategy based on java invoke.
In order to optimize this behaviour, a better solution than the one proposed in #66 would be to detect the presence or not of the target methods directly during the compilation (ie. during annotation procressing).
we start from an ecore without runtime attribute, so the K3 code must rely on the attribute in the companion java object generated by the aspect.
then melange takes both the origial ecore + K3 aspects in order to generate a new ecore for the runtime language.
it generates the java code for this ecore (genmodel: generate model code)
It complements the ecore with a copy of the java code produced by the k3 aspect (with a change of the package namespace in order to adapt to the new ecore java code) (AspectCopier).
In this case, the aspect must give priority to the code in the attribute in EMF (ie. produced by the genmodel)
As this last AspectCopier works on the produced java code instead of the K3 code, the annotation processor is not called, and the code cannot be optimized (at least, easily) during this phase unless Melange changes its AspectCopier
The text was updated successfully, but these errors were encountered:
In order to deal with attribute both in EMF and in K3, the annotation processor currently use a strategy based on java invoke.
In order to optimize this behaviour, a better solution than the one proposed in #66 would be to detect the presence or not of the target methods directly during the compilation (ie. during annotation procressing).
However, after discussion (with @barais @combemale @jdeantoni )this optimisation cannot take place before a change in Melange (https://github.com/diverse-project/melange).
Actually in the current process with Melange:
In this case, the aspect must give priority to the code in the attribute in EMF (ie. produced by the genmodel)
As this last AspectCopier works on the produced java code instead of the K3 code, the annotation processor is not called, and the code cannot be optimized (at least, easily) during this phase unless Melange changes its AspectCopier
The text was updated successfully, but these errors were encountered: