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

Bug 313119

Summary: [EGL] Use of static sections in operations should cause better error message
Product: [Modeling] Epsilon Reporter: Louis Rose <louis>
Component: CoreAssignee: Dimitris Kolovos <dkolovos>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: louis
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=347016
Whiteboard:

Description Louis Rose CLA 2010-05-17 08:11:52 EDT
[%=main()%]
[%
operation main() {%]
foo
[%}%]

Causes the following error message: Type "out" not found.

Normal operations cannot use static sections; an @template operation should be used for this purpose. The error message reveals an implementation detail and does not make obvious the root cause of the problem.
Comment 1 Louis Rose CLA 2010-05-17 08:13:27 EDT
I've caught the TypeNotFound exception, and raised instead the new EglUnallocatedOutputBufferException. The new error message is:

The operation 'main' uses a static section but has not been annotated with @template.
Comment 2 Louis Rose CLA 2010-05-17 08:15:01 EDT
Committed to SVN. Assigning to Dimitris for build integration - thanks!
Comment 3 Dimitris Kolovos CLA 2010-07-15 18:17:14 EDT
Fixed in the SVN and in the latest interim version.
Comment 4 Dimitris Kolovos CLA 2010-11-25 08:16:25 EST
Fixed in 0.9.0.
Comment 5 Louis Rose CLA 2011-05-24 12:35:19 EDT
These error messages will be redundant (and hence removed) once #347016 is fixed.