Closures mess up with the UDF function

Description

In lucee version 6.0.0.110-SNAPSHOT using functions like arrayMap, arrayEach inside the UDF, closures are getting confusing with UDF. While executing the closure, lucee invokes the parent UDF instead of closure.

The example code throws error

Environment

None

Attachments

1

Activity

Show:

Pothys - MitrahSoft 31 August 2021 at 14:25

Pothys - MitrahSoft 31 August 2021 at 14:16

This issue was fixed in the lucee latest build 6.0.0.113-SNAPSHOT.

Pothys - MitrahSoft 11 August 2021 at 11:26

This issue leads to StackOverflowError while using closure inside the UDF.

minimised stackstrace: 

Pothys - MitrahSoft 3 August 2021 at 12:25

I suspect caused by this issue.

and also the admin application page failed to loads available extensions

Unresolved

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 3 August 2021 at 12:04
Updated 10 January 2022 at 14:12