Title:
Update 12: Exception occurring in conditional branch that should not be evaluated
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/Duplicate
Reporter/Name(from Bugbase): Daniel R. / ()
Created: 10/01/2019
Components: Language, Exception Handling
Versions: 2016
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: 2016,0,03,301771 /
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Linux
Vote Count: 6
Problem Description:
An exception is thrown in a branch of a IF expression that should not be executed.
This bug has been introduced in update 12. Running the same test code below in ColdFusion 11 does not exhibit the bug.
Steps to Reproduce:
{code:java}
<cffunction name="test">
<cfif false>
<cfoutput>condition == true</cfoutput>
<cfreturn {
result = variables.nonExisting
}>
<cfelse>
<cfoutput>condition == false</cfoutput>
<cfreturn {
result = ""
}>
</cfif>
</cffunction>
<cfset test()>
{code}
Actual Result:
Exception is thrown: "Error [main] - Element NONEXISTING is undefined in VARIABLES."
Expected Result:
Successful execution of the script, output: "condition == false"
Any Workarounds:
-
Attachments:
Comments: