Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Bradley Wood / Bradley Wood ()
Created: 03/25/2017
Components: Language
Versions: 2016,11.0,10.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: 2016 / 2018.0.0.309145
Priority/Frequency: Normal /
Locale/System: / Platforms All
Vote Count: 6
Problem Description:
Cannot have argument named "default" in script function. This worked in tags, and is also supported by Lucee Server so it is certainly doable. I get that "default" is a keyword, but when there is only one word between the commas, that should be assumed to be the argument name regardless of what it is.
Steps to Reproduce:
{code:java}
function test( required key, required value, default ){
}
{code}
Actual Result: Syntax error
Expected Result:
Code should work like it did in tags and like it does in Lucee Server.
Any Workarounds:
Use tags, or change the name of the argument (which may break backwards compatibility for a public API)
Attachments:
Comments: