Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363118 - Assign null variable to a nonnullable variable doesn't throw exception
Summary: Assign null variable to a nonnullable variable doesn't throw exception
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: Huang Ji Yong CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-07 21:17 EST by Kathy Carroll CLA
Modified: 2017-02-23 14:14 EST (History)
2 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-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