Number of attachments :
Trying to serialize a generated command, functor or filter leads to an exception, because the ClosureFactory that contains the inner classes is not itself serializable.
This issue is related to
JEDI-6, where I already noted that "because the class is declared within a method, it keeps a reference to the surrounding factory instance in a synthetic member."
An easy way out would be to declare the factory class itself serializable.
But as I also noted in
JEDI-6, the reference to the factory is superfluous, and should be omitted. Unfortunately, this reference can only be omitted by declaring the functor class as a top level (directly within a package) or nested class (static within another class). Currently, it is a local class (declared within a method).