[foreign-memaccess+abi] RFR: Add exhaustive test for resource scope handle [v2]

Maurizio Cimadamore mcimadamore at openjdk.java.net
Wed Apr 14 17:19:14 UTC 2021


On Wed, 14 Apr 2021 16:29:33 GMT, Chris Hegarty <chegar at openjdk.org> wrote:

> LGTM.
> 
> Trivially you could replace the try-catch-or-fail with
> assertThrows(IllegalStateException.class, scope::close);

Nice trick - didn't know about this method

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

PR: https://git.openjdk.java.net/panama-foreign/pull/504


More information about the panama-dev mailing list