*ImmutableList for primitives can produce an ArrayIndexOutOfBoundsException via System.arraycopy due to using a.length rather than this.a.length or size() within context of the parameter being named a as well.
This also introduces testcases in IntImmutableListTest and IntArrayListTest to ensure that the check does not regress.
*ImmutableList for primitives can produce an ArrayIndexOutOfBoundsException via System.arraycopy due to using
a.length
rather thanthis.a.length
orsize()
within context of the parameter being nameda
as well.This also introduces testcases in IntImmutableListTest and IntArrayListTest to ensure that the check does not regress.