Integrated: 8304541: Modules THROW_MSG_ should return nullptr instead of JNI_FALSE

Julian Waters jwaters at openjdk.org
Mon Mar 20 18:16:28 UTC 2023


On Mon, 20 Mar 2023 17:39:58 GMT, Julian Waters <jwaters at openjdk.org> wrote:

> Cleanup in NPE code to return a proper nullptr instead of JNI_FALSE. JNI_FALSE expands to 0, which technically works as a null pointer here, but this becomes pretty confusing and strange when reading through the code

This pull request has now been integrated.

Changeset: 19f2edd9
Author:    Julian Waters <jwaters at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/19f2edd9b7e354cf31df4b7596e6a6eb59b34bf9
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8304541: Modules THROW_MSG_ should return nullptr instead of JNI_FALSE

Reviewed-by: coleenp

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

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


More information about the hotspot-runtime-dev mailing list