Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369724 - Can't assign null to a dictionary field
Summary: Can't assign null to a dictionary field
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 13:51 EST by Joseph Vincens CLA
Modified: 2017-02-23 14:20 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 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.