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

Coleen Phillimore coleenp at openjdk.org
Fri Sep 6 12:55:55 UTC 2024


On Thu, 5 Sep 2024 20:37:43 GMT, Dean Long <dlong at openjdk.org> wrote:

> Also, doesn't this change mean that we can now return Unsafe.throwNoSuchMethodError() instead of the target method? > This probably works fine in the interpreter, but I'm worried this could break the compilers in subtle ways.

So we should return NoSuchMethodError because there no is no longer a target method.

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

PR Comment: https://git.openjdk.org/jdk/pull/20874#issuecomment-2333986803


More information about the hotspot-dev mailing list