Always include functions and properties in CFC metadata

Description

If you have a CFC with no methods or properties, the metadata for this CFC does not contain a functions or a properties array at all. This adds more work since I have to check for the arrays' existence or default them. It would be more convenient for the metadata structure to always contain the arrays, and have them simply be empty if there are no functions or properties. That way, I can always assume the function array and properties arrays will be there and are safe to loop over.

Activity

Show:
Pothys - MitrahSoft
February 20, 2019, 5:31 PM

Hi ,

I've added a fix & test case for this issue.

Pull request: https://github.com/lucee/Lucee/pull/636

Pothys - MitrahSoft
December 14, 2020, 6:56 PM

I've checked this ticket with lucee latest version 5.3.8.121-SNAPSHOT, lucee did not yet fix this. And I closed the above PR( https://github.com/lucee/Lucee/pull/636) and added that with a new PR.

Pull Request: https://github.com/lucee/Lucee/pull/1118

Michael Offner
December 18, 2020, 8:52 PM

Michael Offner
December 18, 2020, 8:53 PM

please give this a try

Pothys - MitrahSoft
December 18, 2020, 9:42 PM

I've checked this ticket with fixed version 5.3.8.126-SNAPSHOT. This issue was solved on the fixed version.

Fixed

Assignee

Pothys - MitrahSoft

Reporter

Brad Wood

Labels

None

Sprint

5.3.8 Sprint 3

Fix versions

Priority

Minor