Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322145 - "on-the-fly" compilation failure
Summary: "on-the-fly" compilation failure
Status: CLOSED INVALID
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-09 10:37 EDT by Laurent Goubet CLA
Modified: 2010-09-14 03:14 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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"