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

InternalContextBase defines non-serializable non-transient fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5 beta1
    • 1.5
    • Engine
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: