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

Bug 363118

Summary: Assign null variable to a nonnullable variable doesn't throw exception
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Huang Ji Yong <hjiyong>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: hjiyong, jqian
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-11-07 21:17:05 EST
function assignNullToNotNullable() { @Test }
		isNull decimal(5,2)?;
		d decimal(5,2);
		try
			d = isNull;
			LogResult.failed("no exception");
		onException ( nvx NullValueException )
			LogResult.passed("OK");
		onException ( ax AnyException )
			LogResult.failed("wrong exception");
		end
	end
Comment 1 Huang Ji Yong CLA 2011-11-15 21:09:19 EST
Resolved by another defect
Comment 2 Kathy Carroll CLA 2011-11-16 12:53:23 EST
verified with 20111115_2101 and closed