tracker issue : CF-3043734

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

Bug 86823:(Watson Migration Closure)[ANeff] Bug for: cfsilent + implicit struct|array = vanishing variablescfsilent + implicit struct|array = vanishing variablesPlease see the three 'Bad' examples, for repro

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

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

Created: 04/12/2011

Components: Language, Datastructure

Versions: 10.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 280065

Priority/Frequency: Normal / Unknown

Locale/System: English / Win All

Vote Count: 0

Problem:

[ANeff] Bug for: cfsilent + implicit struct|array = vanishing variablescfsilent + implicit struct|array = vanishing variablesPlease see the three 'Bad' examples, for repro.- change {} to [], in each 'Bad' example, to see same error.- remove the cfsilent tags, from each 'Bad' example, to see success.Please see the one 'Good' example, to see that <cfinvokeargument /> is unaffected.Thanks!,-Aaron
Method:

===============Example 'Bad' 1:===============<cfsilent><cfinvoke method="myMethod" myArg="#{}#" /><cfinvoke method="myMethod" myArg="#{}#" /><cfinvoke method="myMethod" myArg="#{}#" /><!--- "{}" undefined (bug) ---></cfsilent><cffunction name="myMethod"></cffunction>Error: Variable ___IMPLICITARRYSTRUCTVAR2 is undefined.===============Example 'Bad' 2:===============<cfsilent><cfinvoke method="myMethod" myArg="#{}#" /><cfinvoke method="myMethod" myArg="#{}#" /><cfset a = 1 /><!--- "a" undefined (bug) ---></cfsilent><cffunction name="myMethod"></cffunction><cfoutput>#a#</cfoutput>Error: Variable A is undefined.================Example 'Bad' 3:================<cfsilent><cfinvoke method="myMethod" myArg="#{}#" /><cfinvoke method="myMethod" myArg="#{}#" /><cfscript>  a = 1;// "a" undefined (bug)  b = 2;// "b" undefined (bug)</cfscript><cfset c = 3 /></cfsilent><cffunction name="myMethod"></cffunction><cfloop collection="#variables#" item="key">  <cfoutput>#key#</cfoutput><br /></cfloop>Error: See that variables a & b are undefined=================Example 'Good' 1:=================<cfsilent><cfinvoke method="myMethod">  <cfinvokeargument name="myArg" value="#{}#" /></cfinvoke><cfinvoke method="myMethod">  <cfinvokeargument name="myArg" value="#{}#" /></cfinvoke><cfinvoke method="myMethod">  <cfinvokeargument name="myArg" value="#{}#" /></cfinvoke></cfsilent><cffunction name="myMethod"></cffunction><cfloop collection="#variables#" item="key">  <cfoutput>#key#</cfoutput><br /></cfloop>
Result:

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

Watson Bug ID:	3043734

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email: 3D1D17B03C844EBF992001AC
External Test Config: 04/12/2011

Attachments:

Comments:

Verified that this is fixed in CF10 Final (build 10,282462). Thanks!
Comment by External U.
21124 | May 26, 2012 11:09:00 PM GMT