RFR: 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect [v4]

Chen Liang liach at openjdk.org
Tue Jun 27 04:58:04 UTC 2023


On Mon, 26 Jun 2023 22:02:28 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.
>
> Chen Liang has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Wrap line that is too long
>  - Use single space for single-line if statements
>    
>    Co-authored-by: Andrey Turbanov <turbanoff at gmail.com>

Tests pass, integrating. Thank you for your reviews!

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14642#issuecomment-1608795933


More information about the core-libs-dev mailing list