| Summary: | NullValueException is not thrown when passing a null value to a non-nullable parameter of type Any | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Brian Svihovec <svihovec> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jeffdouglas, mheitz, pharmon, tww |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 368729 | ||
fixed Verified in Version: 0.8.0.v201202220747-1Co-FjuJ6QMNSKMxH4KG8_O_ |
Given the following EGL source: data Any?; function setData(value any in) if(value == null) data = null; else data = value; end end function main() var1 int? = null; setData(var1); setData(null); setData(123); end A NullValueException is not thrown for 'setData(var1)' NOTE: It appears that an NVE is thrown if you change the parameter in setData to be 'string' instead of 'any'.