Title:
Error message for non-string arguments to CLI.write() / CLI.writeln() are misleading
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Sean Corfield / Sean Corfield (Sean Corfield)
Created: 03/09/2016
Components: CLI
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: Alpha_v12 /
Priority/Frequency: Minor / Few users will encounter
Locale/System: English / Mac All
Vote Count: 0
Problem Description:
If you call CLI.write() or CLI.writeln() with non-string arguments, you get the error message that the method is not found. It should instead say you can't call it with something that isn't a string. Or it should auto-convert it to a string.
Steps to Reproduce:
Call CLI.writeln( CLI.getArgs() )
Actual Result:
Error message: method writeln not found.
Expected Result:
Either:
Error message: string expected where array found (or something similar).
Or:
Automatic call to .toString() and output of whatever string representation the argument has (in this case "[LString;@abdc1234" or something similar).
Any Workarounds:
None.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126682
External Customer Info:
External Company: Railo US
External Customer Name: Sean Corfield
External Customer Email: SEAN@CORFIELD.ORG
External Test Config:
Attachments:
Comments: