tracker issue : CF-4186948

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

CF's .toJson() should not trigger on Java object with the same function name

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Mingo Hagen / Mingo Hagen (Mingo Hagen)

Created: 09/05/2016

Components: Core Runtime

Versions: 2016

Failure Type:

Found In Build/Fixed In Build: CF2016_Update2 / 302319

Priority/Frequency: Normal / Few users will encounter

Locale/System: ALL / Platforms All

Vote Count: 0

Listed in the version 2016.0.04.302561 Issues Fixed doc
Problem Description:
When calling .toJson() on a java object which has a method implemented with that name, ColdFusion tries to run it's own version of a function with that name.

Steps to Reproduce:
Run code in attachment

Actual Result:
An error:
Invalid argument value for serializeJSON. The SerializeQuery argument can be a boolean or string type only.

Expected Result:
A serialized JSON string.

Any Workarounds:
In this case, I can work around it by using a different function in the gson jar, but that's just lucky.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4186948

External Customer Info:
External Company:  
External Customer Name: Mingo Hagen
External Customer Email:  
External Test Config: My Hardware and Environment details:

ColdFusion 2016 running on Windows 10


  1. September 06, 2016 00:00:00: