tracker issue : CF-4126682

select a category, or use search below
(searches all categories and all time range)
Title:

Error message for non-string arguments to CLI.write() / CLI.writeln() are misleading

| View in Tracker

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:

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:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Closed By newValue: hkallae oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:46:34.0 action: updated fieldName: Owner newValue: Blank oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:46:34.0 action: updated fieldName: Reason newValue: Blank oldValue: Fixed oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:46:34.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:46:34.0 action: updated fieldName: Status newValue: Fixed oldValue: ToTest oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:46:34.0 action: updated fieldName: Date Closed newValue: 2015-09-01 23:46:34.0 oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:46:34.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-18 10:26:33.0 action: updated fieldName: Date Fixed newValue: 2015-08-18 03:26:33.0 oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-18 10:26:33.0 action: updated fieldName: Fixed By newValue: himar oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-18 10:26:33.0 action: updated fieldName: Owner newValue: hkallae oldValue: himar oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-18 10:26:33.0 action: updated fieldName: Changelist newValue: 294964 oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-18 10:26:33.0 action: updated fieldName: Reason newValue: Fixed oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-18 10:26:33.0 action: updated fieldName: Fix By Milestone newValue: Beta oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 03:08:17.0 action: updated fieldName: Fix By Product Milestone newValue: Beta oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 03:08:17.0 action: updated fieldName: Severity newValue: 2 oldValue: 1 oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 03:08:17.0 action: updated fieldName: Reason newValue: Blank oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 03:08:17.0 action: updated fieldName: Priority newValue: 1 oldValue: 0 oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 03:08:17.0 action: updated fieldName: Status newValue: ToFix oldValue: Unverified oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 03:08:17.0 action: updated fieldName: Owner newValue: himar oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 03:08:17.0
Comment by CFwatson U.
3517 | March 09, 2016 04:37:15 AM GMT
Added By: PreRelease User User Name:Sean Corfield Note Added: Confirmed fixed in 9/15 Alpha -- it now throws an exception (cannot convert complex value to string) which is acceptable. Date Added :2015-09-15 21:15:17.0 Added By: PreRelease User User Name:Sean Corfield Note Added: Entered Bug. Date Added :2015-07-20 17:07:20.0
Comment by CFwatson U.
3518 | March 09, 2016 04:37:17 AM GMT