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 ------------- Commit messages: - Test tweaks - 8378609: [lworld] Restore base behaviour of JNI AllocObject and NewObject methods Changes: https://git.openjdk.org/valhalla/pull/2190/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2190&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8378609 Stats: 131 lines in 3 files changed: 86 ins; 30 del; 15 mod Patch: https://git.openjdk.org/valhalla/pull/2190.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2190/head:pull/2190 PR: https://git.openjdk.org/valhalla/pull/2190
