Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff ()
Created: 10/08/2017
Components: Language, Member Functions
Versions: 2016
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: 2016.0.01.298513 / 2018.0.0.308913
Priority/Frequency: Normal / Some users will encounter
Locale/System: / Platforms All
Vote Count: 0
Issue: .setMetadata() not chainable
Repro:
{code:java}
<cfscript>
  myStruct = {foo="Yes"};
  metadata = {foo="boolean"};
  writeDump(myStruct.setMetadata(metadata));
  myArray = ["Yes"];
  metadata = {items=["boolean"]};
  writeDump(myArray.setMetadata(metadata));
</cfscript>
{code}
Actual Result: undefined undefined
Expected Result: {FOO="Yes"} ["Yes"]
Bug b/c arraySetMetadata() and structSetMetadata() are new functions and, thus, their member functions should've been chainable when implemented. We shouldn't have to file make-returntype-chainable tickets for the member function counterparts of newly-added functions.
  Attachments:
Comments: