I'm working on porting some ACF code to Lucee. This code uses the (non-supported) containsAll() member method on arrays to check if all the items from array1 exist in array2.
In Lucee, I noticed the method exists, but returns the wrong values.
Looking at the Lucee source code, I see that the ListAsArray.java implements the containsAll() method as:
This looks like a bug to me. It would appear that it should be calling ist.containsAll(c) instead of ist.contains(c).
Here's a Gist that shows of the issue:
In ACF10+ the code returns true, where in Lucee 5 it returns false.
, I made a test with fixed version 220.127.116.11-SNAPSHOT. It works fine as expected.