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

Bug 361854

Summary: Timestamp[] initialization throws an exception
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: Yun Feng Ma <mayunf>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: jqian, mayunf, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Joseph Vincens CLA 2011-10-24 15:02:09 EDT
put the following in a RUI handler and then run it in the preview pane

   	_array timestamp("yyyyMMddHHmmss")[];
		_array.appendElement("19760119125641" as timestamp);
		syslib.writeStderr(_array[1]);
The following will occur:
Could not render UI

      ("19760119125641",(void 0),true)
      BaseTypesAndRuntimes.js:710 ("19760119125641",(void 0))
      BaseTypesAndRuntimes.js:679 ("19760119125641",(void 0))
      BaseTypesAndRuntimes.js:3755 ([object Object],false,(void 0))
      BaseTypesAndRuntimes.js:2591 ([object Object],false)
      edt_runtime.js:722 ()
      Test1.js?contextKey=6:68 ()
      Test1.js?contextKey=6:8 ()
      egl.js:800 ()
      Test1.html?contextKey=6:80 ([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.client.Test1);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.client.Test1) {egl.println("Internal generation error. Found no definition for client.Test1. Try Project > Clean...", e);} else {egl.printError("Could not render UI", e);throw e;}}}))
      Test1.html?contextKey=6:54 ()
      Test1.html?contextKey=6:52 ([object Event])
      Test1.html?contextKey=6:40 


format is undefined
[CRRUI2094E] Here are the EGL function calls leading to this error:

    Test1.<init>() [native JavaScript]

    () at line 710
format is undefined
aa/runtime/egl/jsrt/BaseTypesAndRuntimes.js:710
[CRRUI2095E] Could not find the EGL function calls leading to this error
Comment 1 Yun Feng Ma CLA 2011-11-04 02:06:13 EDT
I tried build 20111103, looks like it has been fixed. Let me know if you still see it. Thanks.
Comment 2 Joseph Vincens CLA 2011-11-09 06:50:57 EST
verified