Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361433 - Set values block on nullable record doesn't throw NullValueException
Summary: Set values block on nullable record doesn't throw NullValueException
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Yun Feng Ma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 12:49 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:20 EST (History)
3 users (show)

See Also:


Attachments

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