I got simlar issue when passing List instance. That list output of subList() method of arraylist. Exception was about RandomAccessArrayList.
I later wrapped sublist output into another ArrayList as workaround.
I got simlar issue when passing List instance. That list output of subList() method of arraylist. Exception was about RandomAccessArrayList.
I later wrapped sublist output into another ArrayList as workaround.