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
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.