Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322145

Summary: "on-the-fly" compilation failure
Product: [Modeling] Acceleo Reporter: Laurent Goubet <laurent.goubet>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: stephane.begaudeau
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Laurent Goubet CLA 2010-08-09 10:37:34 EDT
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-----
Comment 1 Laurent Goubet CLA 2010-08-09 10:49:06 EDT
This seem to fail only with MTL custom operations (filter, sep...) and not OCL specific ones (asSet, asBag...)
Comment 2 Stephane Begaudeau CLA 2010-09-14 03:11:31 EDT
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"