IllegalArgumentException
{
checkClosed();
//Add an artificial reference to the object class:
ReferenceIterator references = new LongArrayReferenceIterator(new long[]{arrayClassAddress});
writeEntry(address,size,getPrimitiveArrayName(type),references);
_primitiveArraysCount++;
}