XStream
  1. XStream
  2. XSTR-739

Index out of bounds error causes xstream 1.4.4 to fail on AIX 7.1 using IBM 32-bit SDK for AIX, Version 6

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.4
    • Fix Version/s: 1.4.6
    • Component/s: Core
    • Labels:
      None
    • JDK version and platform:
      IBM 32-bit SDK for AIX, Version 6

      Description

      When using Xstream 1.4.4 on AIX 7.1 using the IBM 32-bit SDK for AIX, Version 6 we get the following exception:

      java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
      at com.thoughtworks.xstream.core.util.OrderRetainingMap.entrySet(OrderRetainingMap.java:77)
      at java.util.HashMap.putAllImpl(HashMap.java:678)
      at java.util.HashMap.putAll(HashMap.java:669)
      at com.thoughtworks.xstream.core.util.OrderRetainingMap.<init>(OrderRetainingMap.java:36)

      This doesn't happen on previous versions of Xstream.
      The problem seems to stem from a change in OrderRetainingMap.
      One of the constructors changed, and the change reflects a specific internal behavior in HashMap implementation that is not consistent across JRE implementations.

      OrderRetainingMap calls putAll and assumes that putAll will call put.

        Issue Links

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Uri Shtand
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: