ObjectStreamClass is not thread-safe.

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P2
    • None
    • Affects Version/s: 1.2.0
    • Component/s: core-libs


      allan.jacobs@Eng 1998-03-24

      ObjectStreamClass is not thread-safe. The other io classes seem to
      be OK.


      Only the static variables that are set and used in thread-unsafe
      methods are listed. Only methods that are thread-unsafe are listed.

      /**********************************************************************/
      java/io/ObjectStreamClass.java
      Variable: descriptorFor
         Set and used in findDescriptorFor.
         The method insertDescriptorFor used descriptorFor and also calls

         The method lookupInternal calls findDescriptorFor from a
         synchronized block.
         The method insertDescriptorFor calls findDescriptorFor from a
         unsynchronized block.

         The constructor for ObjectStreamClass calls insertDescriptorFor
         from an unsynchronized block. So, using this method may cause
         a thread-unsafe set of descriptorFor in the routine
         findDescriptorFor.

            Assignee:
            Joe Fialli (Inactive)
            Reporter:
            Allan Jacobs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: