Community
Participate
Working Groups
The automatic compilation fails to find the "filter" operation with the following module. Simply add some characters in the for block and let the automatic compilation do its thing to reproduce. The error message "Illegal operation (p.eClassifiers->filter(ecore::EClass))" should be added to the "for" line. -----8<----- [comment encoding = UTF-8 /] [module generate('http://www.eclipse.org/emf/2002/Ecore')/] [template public generate(p : EPackage)] [comment @main /] [file (p.name + '.txt', false, 'UTF-8')] [for (bidule : EClass | p.eClassifiers->filter(EClass))] [/for] [/file] [/template] ----->8-----
This seem to fail only with MTL custom operations (filter, sep...) and not OCL specific ones (asSet, asBag...)
This bug was the consequence of the patch of this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=314832. The patch has been reverted thus, this bug is "fixed"