Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360444 - JavaCompile errors using **= operator with bigINT
Summary: JavaCompile errors using **= operator with bigINT
Status: CLOSED FIXED
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-10-10 10:33 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:21 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 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