RFR: 8341798: Fix ExceptionOccurred in jdk.jdwp.agent

Justin Lu jlu at openjdk.org
Thu Oct 31 20:18:48 UTC 2024


Please review this PR which is a JNI cleanup to replace incorrect usages of `jthrowable ExceptionOccurred(JNIEnv *env)` with `jboolean ExceptionCheck(JNIEnv *env)` in _jdk.jdwp.agent_.

This is part of the bigger umbrella issue: https://bugs.openjdk.org/browse/JDK-8341542. This change only modifies instances where the exception object is not needed, and the method return value is being treated as if it were a boolean.

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

Commit messages:
 - init

Changes: https://git.openjdk.org/jdk/pull/21814/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21814&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8341798
  Stats: 28 lines in 7 files changed: 0 ins; 0 del; 28 mod
  Patch: https://git.openjdk.org/jdk/pull/21814.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21814/head:pull/21814

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


More information about the serviceability-dev mailing list