RFR: 8338471: Refactor Method::get_new_method() for better NoSuchMethodError handling [v2]

Matias Saavedra Silva matsaave at openjdk.org
Fri Sep 6 19:51:18 UTC 2024


> This patch cleans up the use of `get_new_method()` so callers don't have to worry about throwing `NoSuchMethodError`. The method is refactored to throw the error and avoid ever returning nullptr. Verified with tier1-5 tests.

Matias Saavedra Silva has updated the pull request incrementally with one additional commit since the last revision:

  Fixed conditional to check for is_deleted()

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20874/files
  - new: https://git.openjdk.org/jdk/pull/20874/files/f3d4f23a..ba1cb1b8

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20874&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20874&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/20874.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20874/head:pull/20874

PR: https://git.openjdk.org/jdk/pull/20874


More information about the hotspot-dev mailing list