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

Bug 360444

Summary: JavaCompile errors using **= operator with bigINT
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-10-10 10:33:08 EDT
These test variations work in RBD.

program driver type BasicProgram {}

	
	function main()
		localInt bigInt = 3;
		localInt **= 3;
		if (localInt == 27)
			syslib.writestdout("works");
		else
			syslib.writestdout("fails");
		end
		
		localInt2 bigInt = 3;
		operand smallInt = 3;
		localInt2 **= operand;
		if (localInt2 == 27)
			syslib.writestdout("works");
		else
			syslib.writestdout("fails");
		end
	end
	
end

getting this error

Cannot cast from Double to long

on these lines of Java

    localInt = (long)((EBigint.power(localInt, (long)((short) 3))));

    localInt2 = (long)((EBigint.power(localInt2, (long)(operand))));
Comment 1 Jeff Douglas CLA 2011-10-28 09:34:58 EDT
fixed
Comment 2 Kathy Carroll CLA 2011-10-31 07:00:08 EDT
verified with 201110302101 & closed