Uploaded image for project: 'JBoss Marshalling'
  1. JBoss Marshalling
  2. JBMAR-222

Vector serialization not synchronized

XMLWordPrintable

    • Hide

      See attached test case.

      Show
      See attached test case.

      RiverMarshaller implements its own custom serialization for java.util.Vector that is not thread safe.
      Vector's own writeObject is thread safe.

      This causes ConcurrentModificationExceptions when serializing a Vector that is modified by another thread, which will not occur with JDK serialization that calls Vector's own writeObject.

      The same applies to java.util.Stack which extends Vector.

              jondruse@redhat.com Jiri Ondrusek
              rhn-support-dereed Dennis Reed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: