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

Bug 360166

Summary: generated java script throws exception at runtime.
Product: z_Archived Reporter: Jing Qian <jqian>
Component: EDTAssignee: Scott Greer <greer>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: P1 CC: jvincens
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
eclipse project archive file none

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.