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.
Hi ,
I've added a fix & test case for this issue.
Pull request: https://github.com/lucee/Lucee/pull/636
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
please give this a try
I've checked this ticket with fixed version 5.3.8.126-SNAPSHOT. This issue was solved on the fixed version.