Community
Participate
Working Groups
M4a If the user meta-model fails to be resolved, final EClassifier argumentType = template.getParameter().get(0).getType(); in AcceleoService.doGenerate has a proxy, which obviously doesn't work very well. It would be good to diagnose this rather than produce an empty result, that doesn't even overwrite a pre-existing result.
There's a chance this would be solved by used reporting resource loading errors as mentionned on bug 326536. I am still reticent on doing a resolveAll right off the bat, but this problem would most likely have been detected by EMF (resourceSet.getResources().getErrors()).
We will check for a proxy here: "final EClassifier argumentType = template.getParameter().get(0).getType();" And ModelUtils will now report errors that have occurred during the loading. And a new comment in the generated Java class will invite the user to check for proxies before the beginning of the generation if they have a problem with a resolveAll.