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

Bug 357628

Summary: Compile error on generated code for math expression
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas, mheitz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

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