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

Bug 357863

Summary: Error in generated Java on writeStdout(text) when text is not string
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: mheitz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description broy2 CLA 2011-09-15 15:10:58 EDT
20110915 build

There's an error in the generated Java for the following code:

program mismatch type BasicProgram {}
	myDec decimal(2);
	myString string;
	function main()
		myDec = 9;
		myString = myDec;
		SysLib.writeStdout(myDec);	
	end
end

Type mismatch: cannot convert from BigDecimal to String	

This should work.  I can assign decimal to string.

writeStdout(text)
text -> Input can be any variable or expression that is assignment compatible with the STRING type.
Comment 1 Matt Heitz CLA 2011-09-15 15:39:54 EDT
I just tried it using the latest code from CVS, and the problem is gone.  Should be OK in the next build too.
Comment 2 Matt Heitz CLA 2011-09-15 15:44:13 EDT
Forgot to resolve this when I added the previous comment.
Comment 3 broy2 CLA 2011-09-20 12:38:50 EDT
Verified in 20110920 build.