tracker issue : CF-3951221

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

[elvis] Elvis operator issue when the third operand is a function or variable

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Suchika Singh)

Created: 03/11/2015

Components: Language

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11 Update5 /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Win XP All

Vote Count: 0

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on August 24, 2019 using build 2016.0.01.298513
Run the following code:
function myfunc(myinput)
if (myinput=="suchi")
return javacast("null","") ;
return myinput;

function getById( id ){
	 y = 10;
         return myfunc(id) ?: y?:myfunc(90990);
<cfset myobj=getById("suchi")>
<cfdump var="#myobj#">

Result: MyObj is undefined


----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3951221

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:



Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
31183 | August 24, 2019 09:08:10 AM GMT