> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision: - Merge branch 'master' into cleanup/invoke-instanceof - 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect ------------- Changes: - all: https://git.openjdk.org/jdk/pull/14642/files - new: https://git.openjdk.org/jdk/pull/14642/files/86808e33..4f5829e3 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=14642&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14642&range=00-01 Stats: 332 lines in 30 files changed: 129 ins; 20 del; 183 mod Patch: https://git.openjdk.org/jdk/pull/14642.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/14642/head:pull/14642 PR: https://git.openjdk.org/jdk/pull/14642