tracker issue : CF-4198559

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

Elvis operator fails when using with argument scope

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Shirak Avakian / Shirak Avakian ()

Created: 04/25/2017

Components: Core Runtime

Versions: 2016

Failure Type: Crash

Found In Build/Fixed In Build: Update 4 / CF 2016 Update 5

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Windows 8.1/64bit

Vote Count: 2

Listed in the version 2016.0.05.303689 Issues Fixed doc
Problem Description:
After deploying lastest update 4 for ColdFusion 2016, using Elvis operator with arguments scope the runtime will throw error value undefined in arguments

Steps to Reproduce:
1- Create object CFC
2- Create Service CFC
3- Call the service method and pass the cfc object to the method
4- use Elvis operator with argument scope ex arguments.product.getProductID() ?: 0
Actual Result:
Exception product undefined in arguments
Expected Result:
no exception
Any Workarounds:
remove the scope arguments only use product.getProductID() ?: 0


  1. April 25, 2017 00:00:00:


I believe this ticket may also fix this behavior, which doesn't' involve a method call, just accessing a struct key. Can someone at Adobe confirm if the code above in the Trycf,com link will work in update 5?
Comment by Bradley W.
894 | September 01, 2017 07:04:28 PM GMT
Hi Adobe, +1 for an answer to Brad's question. Does CF-4198559's fix resolve the issue shown in his Gist? Thanks!, -Aaron
Comment by Aaron N.
895 | September 13, 2017 06:14:36 AM GMT
Hi Bradley & Aaron, The fix of this bug also resolves the issue mentioned by Bradley. Thanks, Suchika
Comment by Suchika S.
896 | September 13, 2017 10:14:47 AM GMT