newInstance vs Object[]

"[email protected]" <[email protected]> Fri, 24 Jan 2025 15:55:16 +0100
Newsgroups gmane.comp.lang.groovy.user
Message-ID <[email protected]>
Hi there,

is there a way to create an Object[] through newInstance? Whatever I have tried (e.g., Object[0].newInstance() and similar ugly contraptions) did fail.

Of course, new works all right, but I wonder whether I could use newInstance consistently in all my code.

Thanks!
OC