newInstance

fun newInstance(): T

Attempts to create a new instance of the javaClass with the no-arg constructor.

Return

a new instance of T.

Throws

ReflectionException

when unable to create an instance.