Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358086 - Numeric literal in if condition produces invalid Java
Summary: Numeric literal in if condition produces invalid Java
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-19 06:40 EDT by Kathy Carroll 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 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.