Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363668 - exception when comparing nullable date with ""
Summary: exception when comparing nullable date with ""
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-13 23:57 EST by Tom B CLA
Modified: 2017-02-23 14:20 EST (History)
2 users (show)

See Also:


Attachments

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