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

Bug 360448

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

Description Kathy Carroll CLA 2011-10-10 10:41:45 EDT
These variations worked in javagen in RBD.
 
Make a rui handler driver and make this the start() method

    function start()
    	syslib.writestdout("about to test");
     	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

Deploy the project and look for the syntax errors in the driver.js file in the deployed project.

Error message

Syntax error on token "*=", delete this token

for these lines of code

    localInt **= egl.eglx.lang.EInt64.fromEInt16(3);
    localInt2 **= egl.eglx.lang.EInt64.fromEInt16(operand);
Comment 1 Scott Greer CLA 2011-10-24 18:28:08 EDT
Fixed
Comment 2 Kathy Carroll CLA 2011-10-27 17:22:06 EDT
verified 20111027_1153 & closed.