Issues
2 of 2
concatenation operator fails inside cffinally inside a function
Description
Environment
Windows
relates to
Details
Assignee
Michael OffnerMichael OffnerReporter
Jesse CarltonJesse CarltonPriority
NewNew 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
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Jesse Carlton
Jesse CarltonPriority
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 16 August 2022 at 16:40
Updated 17 August 2022 at 13:47
Activity
Show:
Pothys - MitrahSoft17 August 2022 at 13:41
It fails with a different error in the build
Stacktrace from the build
Pothys - MitrahSoft17 August 2022 at 13:36Edited
I've checked this ticket and confirmed the issue happened on the lucee latest version 5.3.10.56-SNAPSHOT. Using the compound concatenation operator(&=) in finally block with the local scope prefix throws an error like variable [local] doesn't exist. Seems it works fine in ACF.
Also using the concatenation operator(&) in finally block with/without the local scope prefix works fine in lucee too.
I added a testcase to this ticket
Pull Request:
Stacktrace
if you have a function and are using the local scope inside a try/catch/finally, and use the string concatenation operator, it will generate an error “variable [local] doesn't exist”
Proof of concept:
This will throw an error at line 10.