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

Bug 358086

Summary: Numeric literal in if condition produces invalid Java
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: jeffdouglas, jqian
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-09-19 06:40:15 EDT
program driver type BasicProgram {}
	function main()
		passed int = 9;
		if (passed > 0)
			syslib.writeStdout("some passed ");
		else
			syslib.writestdout("none passed");
		end
	end
end

==========
The operator > is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal
==============
if ((EInt.asNumber(EInt.ezeBox(passed)) > org.eclipse.edt.runtime.java.egl.lang.ESmallint.asNumber(org.eclipse.edt.runtime.java.egl.lang.ESmallint.ezeBox((short) 0)))) {
Comment 1 Jeff Douglas CLA 2011-09-19 09:09:31 EDT
Paul's change on friday broke this. He's working on it.
Comment 2 Jeff Douglas CLA 2011-09-19 09:32:38 EDT
Paul's fixed it. It will be in the next build.
Comment 3 Kathy Carroll CLA 2011-09-19 11:30:52 EDT
works in 20110919052
Comment 4 Lisa Lasher CLA 2011-10-11 16:12:15 EDT
Closing this defect.