tracker issue : CF-4202430

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

property no longer allowed as a function name within a function in a CFC

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Tom King / ()

Created: 05/14/2018

Components: Language, Script CFC

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: Beta / 2018,0,0,309470

Priority/Frequency: Normal /

Locale/System: / Windows 10

Vote Count: 0

Problem Description:

2018 syntax doesn't differ between "property()" called outside of a function, and property() to be called WITHIN a function in a CFC

Example:
https://github.com/cfwheels/cfwheels/blob/master/wheels/model/associations.cfm#L157

Steps to Reproduce:

component {
  // This is fine:
  property name='someService' inject='ServerService';

  function myFunction(){
    // This function called property, might be in variables scope outside of CFC
    property(title="foo");  
  }
}

Attachments:

Comments:

Hi Tom and Adobe, Confirmed. <cfscript> function property(){} property(); </cfscript> Works in CF 10/11/2016. Throws "coldfusion.compiler.ScriptParseExceptions" in build 2018.0.01.308605 (PreRelease). Needs fixed. Thanks!, -Aaron
Comment by Aaron N.
27800 | May 14, 2018 11:41:00 PM GMT