Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357628 - Compile error on generated code for math expression
Summary: Compile error on generated code for math expression
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-14 09:38 EDT by Joseph Vincens CLA
Modified: 2017-02-23 14:14 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Vincens CLA 2011-09-14 09:38:57 EDT
function getNextToken(source string inout, index int inout, delimiters string in) returns (string?)
		charIndex int = index / 2 + 1;

generates 
		int charIndex = 0;
		charIndex = EInt.asInt((EDecimal.plus((EInt.divide(index.ezeUnbox(), (int)((short) 2))), ESmallint.ezeBox((short) 1))));

which has the compile error:
The method plus(BigDecimal, BigDecimal) in the type EDecimal is not applicable for the arguments (BigDecimal, ESmallint)
Comment 1 Jeff Douglas CLA 2011-09-14 10:58:12 EDT
fixed
Comment 2 Joseph Vincens CLA 2011-09-15 08:20:15 EDT
verified