XStream
  1. XStream
  2. XSTR-635

FieldDictionary's synchronized(this) usage has room for error.

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Not A Bug
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      sync(this)

      { if missing in weakHashMap make it, and put it in }

      // here
      get from weakHashMap

      The above has room for an item to disappear from the WeakHashMap between when it is checked for, and when it is retrieved. That said, it's a one in a billion chance.

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Paul Hammant
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: