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

Bug 332493

Summary: function decrement
Product: [Modeling] AMP Reporter: lukschmi <lukas.schmid>
Component: AXFAssignee: Miles Parker <milesparker>
Status: RESOLVED FIXED QA Contact: Miles Parker <milesparker>
Severity: normal    
Priority: P3    
Version: 0.8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.