On Tue, 3 Mar 2026 01:31:07 GMT, David Holmes <[email protected]> wrote:
> Please review these simple changes to some of the JNI functions: > > - JNI `AllocObject` should not throw `InstantiationException` for value types > (and I've added a very simple test for that) > - JNI `NewObject*` had leftover code to explicitly throw > `InstantiationException` but that is already handled inside > `allocate_instance` > > Also fixed some alignment/whitespace issues that had crept in. > > Thanks This pull request has now been integrated. Changeset: bcbf2841 Author: David Holmes <[email protected]> URL: https://git.openjdk.org/valhalla/commit/bcbf2841b6caa01e8da6605d20e9fcc4449d6513 Stats: 131 lines in 3 files changed: 86 ins; 30 del; 15 mod 8378609: [lworld] Restore base behaviour of JNI AllocObject and NewObject methods Reviewed-by: dsimms, iwalulya, heidinga, fparain ------------- PR: https://git.openjdk.org/valhalla/pull/2190
