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