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

Bug 369724

Summary: Can't assign null to a dictionary field
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: hjiyong, mheitz, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Joseph Vincens CLA 2012-01-25 13:51:38 EST
The following fails in JS gen.

dict dictionary{f1 = null};

Exception:
Could not render UI

      ([object Object],"f1",null)
      edt_runtime_all.js?contextKey=95:12353 ()
      H1.js?contextKey=95:68 ()
      H1.js?contextKey=95:8 ()
      edt_runtime_all.js?contextKey=95:751 ()
      H1.html?contextKey=95:38 ()
      edt_core.js:131 eze$$loadScripts([object Array],(function () {try {initFunc();} catch (e) {egl.crashTerminateSession();if (e == "eze$$HandlerLoadErr") {egl.println("Internal generation error. Found no definition for samples.client.HelloWorldView. Try Project > Clean...");} else {egl.printError("Could not render UI", e);}throw e;}}))
      edt_core.js:71 ()
      edt_core.js:69 ([object Event])
      edt_core.js:57 


boxedValue is null
[CRRUI2094E] Here are the EGL function calls leading to this error:
Comment 1 Joseph Vincens CLA 2012-01-25 18:09:02 EST
This blocks the successful completion of the JSON tests.
Comment 2 Matt Heitz CLA 2012-12-19 15:26:48 EST
Fixed with commit 3977d6d41782a20bdc011ba22ac0903b3ccca65b.  I also removed the "skipped" code from the JSON EUnits, and the variations pass.