On Tue, 21 May 2024 14:07:29 GMT, jengebr <d...@openjdk.org> wrote: > Any suggestions?
I would recommend a new method `copyClasses`/`copyTypes` in `jdk.internal.reflect.ReflectionFactory`, as it already has related `copyConstructor` and `getExecutableSharedParameterTypes` methods. Also, can you rename your PR's title to `8332586: Avoid cloning empty arrays in java.lang.reflect.{Method,Constructor}` for the bot to handle this? ------------- PR Comment: https://git.openjdk.org/jdk/pull/19327#issuecomment-2122798223