Status/Resolution/Reason: To Track//NeedMoreInfo
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 04/24/2014
Components: Language
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: PublicBeta /
Priority/Frequency: Major / Some users will encounter
Locale/System: ALL / Platforms All
Vote Count: 4
See: http://cfmlblog.adamcameron.me/2014/04/coldfusion-11-quick-look-at-what-data.html
{code}
function function regurgitateFunction(required function f){
return f;
}
writeOutput("<h3>Built-in function</h3>");
midref = mid;
safe(function(){
resultWithBuiltInFunction = regurgitateFunction(midref);
writeDump(var={object=resultWithBuiltInFunction, type=resultWithBuiltInFunction.getClass().getName()});
});
function safe(f){
try {
f();
}catch(any e){
writeOutput("#e.type#: #e.message#; #e.detail#<br>");
}
}
{code}
Errors with:
function: The value returned from the regurgitateFunction function is not of type function.; If the component name is specified as a return type, it is possible that either a definition file for the component cannot be found or is not accessible.
This makes no sense as the function was accepted as an argument of return type "function" to the function, but then as not legit as a return type of "function"
--
Adam
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3749301
Reason: BugVerified
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: