Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361854 - Timestamp[] initialization throws an exception
Summary: Timestamp[] initialization throws an exception
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Yun Feng Ma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-24 15:02 EDT by Joseph Vincens CLA
Modified: 2017-02-23 14:16 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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