Integrated: 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect
Chen Liang
liach at openjdk.org
Tue Jun 27 16:14:20 UTC 2023
On Sun, 25 Jun 2023 09:18:34 GMT, Chen Liang <liach at openjdk.org> wrote:
> This patch touches java.lang.reflect and java.lang.invoke packages. It replaces instanceof + cast with pattern matching and updates Array.newInstance().getClass() patterns with arrayType() for obtaining array types of a class.
This pull request has now been integrated.
Changeset: 2bd4136b
Author: Chen Liang <liach at openjdk.org>
Committer: Mandy Chung <mchung at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2bd4136bdb74599e358a22c83ffc685a2c0db4d2
Stats: 292 lines in 34 files changed: 0 ins; 81 del; 211 mod
8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect
Reviewed-by: mchung, darcy
-------------
PR: https://git.openjdk.org/jdk/pull/14642
More information about the core-libs-dev
mailing list