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

Bug 354252

Summary: Concat of null string using ?: operator doesn't return null
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-09 09:56:46 EDT
Expecting a null value when I use the ?: operator with a null string

EGL code:

program tester type BasicProgram {}

	function main()
		nullStr string? = null;
		valueStr string = "Red bull";
		resultStr string? = nullStr ?: valueStr;
		if (resultStr == null )
			syslib.writeStdOut("?: successful");
		else
			syslib.writeStdOut(":? failure");
		end		
	end
	
end
Comment 1 Jeff Douglas CLA 2011-08-09 12:20:43 EDT
fixed
Comment 2 Lisa Lasher CLA 2011-10-11 16:05:23 EDT
Closing this defect.