Title:
[ANeff] Bug for: member function errors say "The function accepts 1 parameters."
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 11/15/2014
Components: Language
Versions: 11.0
Failure Type: Cosmetic Issue
Found In Build/Fixed In Build: CF11_Final / CF11 Update5
Priority/Frequency: Minor / Some users will encounter
Locale/System: English / Win All
Vote Count: 0
If a member function accepts only 1 parameter, and 2+ parameters are passed-in, then:
- Actual exception message: "The function accepts 1 parameters." (plural)
- Expected exception message: "The function accepts 1 parameter." (singular)
Some repro examples:
<cfscript>
myStruct = {1="b"};
myStruct.each(function(){}, 2);//"The function accepts 1 parameters." (should be "parameter")
myVar = "b";
writeOutput(myVar.left(1, 2));//"The function accepts 1 parameters." (should be "parameter")
myStruct = {1="b"};
writeOutput(myStruct.find(1, 2));//"The function accepts 1 parameters." (should be "parameter")
</cfscript>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3852305
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
Attachments:
Comments: