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

Bug 360801

Summary: Empty String != Null String should evaluate to true
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: jeffdouglas, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-10-13 07:46:25 EDT
I believe all of these tests should writeout good.  Works as desired in JavaScript.  

		str string;
		strN string?;
		
		if (str == strN)
			syslib.writestdout("bad");
		else
			syslib.writestdout("good");
		end
		
		if (str != strN)
			syslib.writestdout("good");
		else
			syslib.writestdout("bad");
		end
		
		if ("" == strN)
			syslib.writestdout("bad");
		else
			syslib.writestdout("good");
		end
		
		if ("" != strN)
			syslib.writestdout("good");
		else
			syslib.writestdout("bad");
		end
Comment 1 Kathy Carroll CLA 2011-10-13 08:05:16 EDT
add this to the end of the code

		str = "abcde";
		if (str != strN)
			syslib.writestdout("good");
		else
			syslib.writestdout("bad");
		end
Comment 2 Jeff Douglas CLA 2011-10-18 14:27:22 EDT
fixed
Comment 3 Kathy Carroll CLA 2011-10-19 11:58:24 EDT
Verified with 201110190903 & closed