Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368733 - NullValueException is not thrown when returning a null value from a non-nullable return of type Any
Summary: NullValueException is not thrown when returning a null value from a non-nulla...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 368734
  Show dependency tree
 
Reported: 2012-01-16 11:26 EST by Brian Svihovec CLA
Modified: 2017-02-23 14:18 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Svihovec CLA 2012-01-16 11:26:35 EST
Given the following EGL Source:

 data Any?;
 function getData()returns(any)
    	data = null;
    	return (data);
 end

 function main()
   SysLib.writestdout(getData());
 end

A NVE is not thrown at runtime.

NOTE: An NVE is thrown if you change the type of 'data' to a 'String?' and change the return type of 'getData' to 'String' from 'any'.
Comment 1 Jeff Douglas CLA 2012-02-16 12:31:10 EST
fixed
Comment 2 Brian Svihovec CLA 2012-02-23 10:35:00 EST
Verified in Version: 0.8.0.v201202220747-1Co-FjuJ6QMNSKMxH4KG8_O_