Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357863 - Error in generated Java on writeStdout(text) when text is not string
Summary: Error in generated Java on writeStdout(text) when text is not string
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-15 15:10 EDT by broy2 CLA
Modified: 2017-02-23 14:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.