Jedi
  1. Jedi
  2. JEDI-30

Generated classes are Serializable, but can not be serialized

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jedi 3.0.5
    • Number of attachments :
      0

      Description

      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).

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Lance Walton
            Reporter:
            Christian Semrau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: