Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360166 - generated java script throws exception at runtime.
Summary: generated java script throws exception at runtime.
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 blocker (vote)
Target Milestone: ---   Edit
Assignee: Scott Greer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 16:22 EDT by Jing Qian CLA
Modified: 2017-02-23 14:20 EST (History)
1 user (show)

See Also:


Attachments
eclipse project archive file (40.23 KB, application/zip)
2011-10-06 16:23 EDT, Jing Qian CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jing Qian CLA 2011-10-06 16:22:00 EDT
This is a blocking issues, because A LOT of test cases will be depends on the following methods. 

see the attached project

run myRUI in the preview pane

in IE, you will see
start
caught anyException CRRUI2006E: Object doesn't support this property or method

in FF, you will see
start
caught anyException CRRUI2006E: egl.createTypeCastException is not a function

Either way, there should not be exception thrown in this case.

I think the cause of the issues are in the following EGL functions in LogResult.egl

private function expect(expected any in, actual any in) returns (String)
        standardMsg string = "Failed: " + EXPECTEDHEADER + "'" + expected + "' " + ACTUALHEADER + "'" + actual + "' ";
        return (standardMsg);
    end
Comment 1 Jing Qian CLA 2011-10-06 16:23:30 EDT
Created attachment 204719 [details]
eclipse project archive file
Comment 2 Scott Greer CLA 2011-10-07 15:07:02 EDT
Fixed by removing extraneous logic related to (un)boxing of function parameters.
Comment 3 Lisa Lasher CLA 2011-11-09 14:13:28 EST
This high severity defect was fixed several weeks ago, so I am closing.