Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360958 - Division with numeric literals results in an abend w/ x.signum is not a function
Summary: Division with numeric literals results in an abend w/ x.signum is not a function
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: Scott Greer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-14 09:04 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:15 EST (History)
1 user (show)

See Also:


Attachments
EGL Source file (4.25 KB, application/octet-stream)
2011-10-14 11:22 EDT, Kathy Carroll CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Carroll CLA 2011-10-14 09:04:06 EDT
EGL CODE

package mine;
handler Minor type RUIhandler{initialUI =[], onConstructionFunction = start, cssFile = "css/ZZTest.css", title = "Minor"}
    function start()
    	syslib.writestdout("starting");
    	testing();
    	syslib.writestdout("stopping");
    end
    
    function testing()
		intActual int = 75 / 5;
		intExpect int = 15;
		syslib.writestdout(" 75 / 5");
		if (intActual == intExpect)
			syslib.writestdout("good");
		else
			syslib.writeStdout("bad");
		end
    end
end

Firefox shows

starting
Could not render UI

      (15,[object Object],[object Object],"TODO: make an exception for this")
      BaseTypesAndRuntimes.js:897 (15,"TODO: make an exception for this")
      BaseTypesAndRuntimes.js:935 (15)
      edt_runtime.js:133 ()
      Minor.js?contextKey=51:68 ()
      Minor.js?contextKey=51:52 ()
      Minor.js?contextKey=51:6 ()
      egl.js:800 ()
      Minor.html?contextKey=51:79 ([object Array],(function () {egl.localeInfo = {locale: "en_US", nlsCode: "ENU", shortMask: "MM/dd/yyyy", mediumMask: "MM-dd-yyyy", longMask: "MM-dd-yyyy", currencySymbol: "$", decimalSeparator: ".", groupingSeparator: ","};try {egl.handleIDEEvent();egl.rootHandler = new (egl.mine.Minor);if (egl.rootHandler.targetWidget || !egl.rootHandler.egl$isWidget) {egl.rootHandler.setParent(egl.Document);} else {var package = egl.rootHandler.eze$$package;var typename = egl.rootHandler.eze$$typename;egl.rootHandler = egl.Document;egl.rootHandler.eze$$package = package;egl.rootHandler.eze$$typename = typename;}egl.startup();} catch (e) {egl.crashTerminateSession();if (!egl.mine.Minor) {egl.println("Internal generation error. Found no definition for mine.Minor. Try Project > Clean...", e);} else {egl.printError("Could not render UI", e);throw e;}}}))
      Minor.html?contextKey=51:53 ()
      Minor.html?contextKey=51:51 ([object Event])
      Minor.html?contextKey=51:39 


x.signum is not a function
[CRRUI2094E] Here are the EGL function calls leading to this error:

    mine/Minor.egl() at line 16
    mine/Minor.egl() at line 11
    Minor.<init>() [native JavaScript]

    start() at line 897
x.signum is not a function
ZZTest/runtime/egl/jsrt/BaseTypesAndRuntimes.js:897
[CRRUI2095E] Could not find the EGL function calls leading to this error
Comment 1 Kathy Carroll CLA 2011-10-14 11:22:10 EDT
Created attachment 205206 [details]
EGL Source file

issue with smallint variables and number variables
Comment 2 Scott Greer CLA 2011-10-24 23:24:16 EDT
Fixed
Comment 3 Kathy Carroll CLA 2011-10-27 17:15:35 EDT
verified with 20111027_1153 & closed