newArrayInstance

Creates a new array instance with the given size with the javaClass as component type.

Return

a new array of T instance with the given size.

Parameters

size

size of the array to create. Must not be negative.

Throws

ReflectionException

when unable to create an array instance.