Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-458

InternalContextBase defines non-serializable non-transient fields

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5 beta1
    • Fix Version/s: 1.5
    • Component/s: Engine
    • Labels:
      None

      Description

      According to Findbugs, org.apache.velocity.context.InternalContextBase defines currentResource and eventCartridge as non-serializable, non-transient in a serializable class.

      Possible solutions:

      a) make Resource and EventCartridge serializable (might drag a large number of classes along)

      b) remove Serializable from InternalContextBase (does the Context get serialized somewhere? Is it needed for e.g. Web Applications?)

      c) make the fields transient, losing their contents after serialization / de-serialization.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              henning Henning Schmiedehausen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: