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

Bug 361433

Summary: Set values block on nullable record doesn't throw NullValueException
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Yun Feng Ma <mayunf>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: hjiyong, mayunf, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-10-19 12:49:37 EDT
Set values block on nullable record doesn't throw NullValueException

EUnit variation
	function setValuesOnNullableRecord3() { @Test }
		state ExceptionState = ExceptionState.noException;
		try
			//The rec is nullable and not initialized, so it's null.
			//The assignment to s should fail.
			tr TestRec?;		
			tr{ s = "a value for field s" };
			Logresult.failed("no exception");
		onException ( nvx NullValueException )
			Logresult.passed("Got exception");
		onException ( ax AnyException )
			Logresult.failed("wrong exception");
		end
	end
Comment 1 Huang Ji Yong CLA 2011-11-14 01:29:25 EST
Resolved indirectly
Verified by Pengfei
Comment 2 Kathy Carroll CLA 2011-11-14 11:20:16 EST
verfied 20111114_2101 & closed.