XStream
  1. XStream
  2. XSTR-677

Exception when using StringConverter from multiple threads

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Not A Bug
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: Converters
    • Labels:
      None
    • JDK version and platform:
      Java HotSpot Server VM "1.6.0_07"; Linux

      Description

      Sharing a StringConverter between multiple threads leads to exceptions (sometimes ArrayIndexOutOfBoundsException, sometimes ConcurrentModificationException). In our scenario, the cache used by the converter is given to the converter's toString() method.
      I attach a minimal test case that reproduces the problem on my machine on almost every run.

      Thanks for fixing this issue!

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Michael Pradel
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: