Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Sean Corfield / Sean Corfield (Sean Corfield)
Created: 03/09/2016
Components: CLI
Versions: 2016
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: Alpha_v12 /
Priority/Frequency: Normal / Few users will encounter
Locale/System: English / Mac All
Vote Count: 0
Problem Description:
CLI.getArgs() returns a native Java array of strings -- String[] -- which means "normal" CFML array manipulation doesn't work on it.
Steps to Reproduce:
Call CLI.getArgs() and try to use for ( elem in args ) or any member function on the result.
Actual Result:
Fails, because it's a String[], not a CFML array.
Expected Result:
Should be a CFML array and all array functions should work on it.
Any Workarounds:
Call arrayLen() to get the length and then use for ( i = 1; i lte n; ++i ) { args[i] ... }
NOTE: this also currently applies to getNamedArgs() but see separate ticket for a better fix for that.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126686
External Customer Info:
External Company: Railo US
External Customer Name: Sean Corfield
External Customer Email: SEAN@CORFIELD.ORG
External Test Config:
Attachments:
Comments: