Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Harry Klein / Harry Klein (Harry Klein)
Created: 03/09/2016
Components: Language
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: RC_v12 /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Win All
Vote Count: 1
Problem Description:
<cfset stItem[sCol] = replace(stItem[sCol], fieldel, arguments.stMixin.stResult[item['page_id']][fieldel])>
replace arg1 value = 1000
replace arg2 value = page_id
replace arg3 value = 1047
Steps to Reproduce:
-
Actual Result:
{""Cause"":null,""Message"":""java.lang.Integer cannot be cast to java.lang.String"",""LocalizedMessage"":""java.lang.Integer cannot be cast to java.lang.String"",""StackTrace"":[{""FileName"":""StringFunc.java"",""NativeMethod"":false,""ClassName"":""coldfusion.runtime.StringFunc"",""LineNumber"":357,""MethodName"":""Replace""}
Expected Result:
Replace the values, even if they are integers!
Any Workarounds:
Add toString()
<cfset stItem[sCol] = replace(stItem[sCol], fieldel, arguments.stMixin.stResult[item['page_id']][fieldel].toString())>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126411
External Customer Info:
External Company: CONTENS
External Customer Name: Harry Klein
External Customer Email: KLEIN@CONTENS.DE
External Test Config:
Attachments:
Comments: