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

Bug 363668

Summary: exception when comparing nullable date with ""
Product: z_Archived Reporter: Tom B <tmbarans>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jqian, mzanjani
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tom B CLA 2011-11-13 23:57:45 EST
Build Identifier: Eclipse 20110916-0149 EDT 0.7.0.v201111132101

When comparing a nullable date with "" an exception is thrown with the message 'null' is null or not an object. This only happens with Javascript - the Java version runs without exception

function runAssignmentFunction02(){@Test}
		myDate date?;
		try
		  LogResult.assertTrue("nullable initialization", myDate != "");
		onException(exception anyexception)
		  syslib.writestdout(exception.message);
		end
	end

Reproducible: Always

Steps to Reproduce:
1. Generate EDate001.egl to javascript
2. Run the generated program. Testcase runAssignmentFunction02() will fail with the message "null is null or not an object"
3. This does not happen with the Java-generated version of EDate001
Comment 1 Jing Qian CLA 2011-11-21 14:51:46 EST
verified on 201111210901's build,