I’m troubleshooting some session swapping which I think is because of threads. Could using Java’s retainAll() and toList() methods cause thread problems, that is, are they thread safe?
Hi Zack, it was a red herring on my part; the enclosing code was a CFC in the Application scope, so I think what I saw was a race condition with sessions getting swapped. Some loop indexes in the CFC needed to be var scoped. But, then I just chucked it all and moved the instantiated CFC to the session scope.