RFR: 8332586: Avoid cloning empty arrays in java.lang.reflect.{Method,Constructor}
Chen Liang
liach at openjdk.org
Thu May 30 19:30:12 UTC 2024
On Tue, 21 May 2024 14:07:29 GMT, jengebr <duke at 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
More information about the core-libs-dev
mailing list