Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313119 - [EGL] Use of static sections in operations should cause better error message
Summary: [EGL] Use of static sections in operations should cause better error message
Status: CLOSED FIXED
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-17 08:11 EDT by Louis Rose CLA
Modified: 2012-02-06 10:59 EST (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 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.