Status/Resolution/Reason: Closed/Withdrawn/Duplicate
Reporter/Name(from Bugbase): A. Bakia / ()
Created: 10/30/2018
Components: Language, Exception Handling
Versions: 2018
Failure Type: Others
Found In Build/Fixed In Build: 2018,0,01,308605 /
Priority/Frequency: Normal /
Locale/System: / Windows 7 SP1 64-bit
Vote Count: 2
Problem Description:
If you use an integer as second (key) argument of structfind(), you will get an error. The error detail is "StructFind only supports UDFMethod or String(Key) as second argument as second argument.". This sentence itself contains an error. Namely a repetition of the phrase "as second argument".
Steps to Reproduce:
Run a page containing the following code
<cfscript>
x={};
x[1]="some value";
y=structfind(x,1);
writeoutput(y);
</cfscript>
Actual Result:
An exception struct whose detail is "StructFind only supports UDFMethod or String(Key) as second argument as second argument.".
Expected Result:
An exception struct whose detail is "StructFind only supports UDFMethod or String(Key) as second argument.".
Any Workarounds:
Not relevant.
Attachments:
Comments: