tracker issue : CF-4202544

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: NULL cannot be made final

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/AsDesigned

Reporter/Name(from Bugbase): Aaron Neff / ()

Created: 05/21/2018

Components: Language, Null Support

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2018.0.01.308605 (PreRelease) / 2018,0,0,309764

Priority/Frequency: Normal / Some users will encounter

Locale/System: / Platforms All

Vote Count: 0

Issue: NULL cannot be made final

Steps to Reproduce:
1) Run:
-----------
<cfscript>
  final null = null
  writeDump(null)
</cfscript>
-----------

Actual Result: coldfusion.runtime.UndefinedVariableException on line 2

Expected Result: [null]

Suggestion: `final null = null` should be allowed, to prevent NULL from being overridden

Related post: http://blog.cfaether.com/2018/05/null-cannot-be-made-final.html

Attachments:

Comments: