Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332493 - function decrement
Summary: function decrement
Status: RESOLVED FIXED
Alias: None
Product: AMP
Classification: Modeling
Component: AXF (show other bugs)
Version: 0.8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Miles Parker CLA
QA Contact: Miles Parker CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-14 01:38 EST by lukschmi CLA
Modified: 2010-12-20 00:34 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lukschmi CLA 2010-12-14 01:38:10 EST
the function "decrement" leads to wrong java code. 

instead of the correct expression: variable = variable - 1;

it writes: variable = --variable;

which leads to an error.
Comment 1 Miles Parker CLA 2010-12-15 13:33:04 EST
(Need to check if this happens with increment as well.)
Comment 2 Miles Parker CLA 2010-12-20 00:34:09 EST
Fixed, see: http://git.eclipse.org/c/amp/org.eclipse.amp.git/commit/?id=466f9ef255abbb0235fc14eb0e84e1b57c28d1fd&ss=1

Not extensively tested, please verify.