After installing ACF 2018 u16 w/ JVM 11.0.18 last ...
# adobe
c
After installing ACF 2018 u16 w/ JVM 11.0.18 last night, our app has blown up. It appears the arrow operators/Lambdas have been regressed. This has been reproduced locally. "varB" is a query results with four columns.
Copy code
local.varA = local.get_varB.reduce( (val, row) => {
    val.append(row);
    return val;
}, [] );
returns ...$func_CF_ANONYMOUSCLOSURE_413 in the try/catch cause message. by switching the arrow operator to a function, the code starts working. The "regressed" code fix below works:
Copy code
local.varA = local.get_varB.reduce( function(val, row) {
    val.append(row);
    return val;
}, [] );
I am planning on reporting this to Adobe (@sandip_halder) but wanted to see if anyone had any input on this or have hear the same?
Just a quick update... a simplified two file version of this code works without issue locally on CommandBox, but using CommandBox's default JVM. Appears to be something very specific. I am working on changing things out to get it to hit. Also, the destination server has stopped producing these errors without code change. Looking into that.
From the best we can assert, we had to clear the component cache. At this time the issue has been resolved after doing this step.