On Fri, 5 Apr 2024 01:11:49 GMT, David Holmes <dhol...@openjdk.org> wrote:

> Does this generate a warning with `-Xcheck:jni` due to exceptions not being 
> checked for?

I run with`TEST_OPTS_JAVA_OPTIONS=-Xcheck:jni` and don't see any warnings. Are 
you asking about the usage of GetObjectClass (which is not documented to throw) 
or GetMethodID (the check for the jmethodID of NULL is at L30). Or maybe you 
are saying that GetMethodID can return a jmethodID with a pending exception?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18600#discussion_r1552938067

Reply via email to