tracker issue : CF-4198705

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

Generated accessors are not available to included CFM templates

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Bradley Wood / Bradley Wood ()

Created: 05/15/2017

Components: Language

Versions: 2016

Failure Type: Others

Found In Build/Fixed In Build: 2016 / 303894

Priority/Frequency: Normal /

Locale/System: / Platforms All

Vote Count: 2

Problem Description:
A met5hod in a CFC exists in the variables scope of that CFC.  Included CFM templates in a CFC also share the same variables scope.  However, an included CFM template in a CFC cannot access generated accessor method. 

Steps to Reproduce:

Clone this GitHub repo and use CommandBox to run the "box start" command in the root of the repo.  After a few moments, the browser will open and you will see the error.
https://github.com/bdw429s/generated-accessor-not-accessible/

Actual Result:
Variable GETMYPROP is undefined.

Expected Result:
Correctly-working code.

Any Workarounds:
You cannot use generated accessors and must manually create your getters and setters.

Attachments:

Comments:

Please fix it.
Vote by sana u.
726 | May 16, 2017 11:41:11 AM GMT
I hope update 6 is soon! We noticed today that this is breaking the ColdBox 5 beta on Adobe ColdFusion.
Comment by Bradley W.
725 | October 02, 2017 06:21:07 PM GMT
Just encountered this too. Needs to be fixed!
Vote by Carl V.
727 | October 02, 2017 06:21:11 PM GMT