On Wed, 10 Jan 2024 15:23:01 GMT, Maurizio Cimadamore <[email protected]>
wrote:
>> test/jdk/java/foreign/TestSegmentAllocators.java line 234:
>>
>>> 232: // WrongThreadException if this method is called from a
>>> thread {@code T},
>>> 233: // such that {@code source.isAccessibleBy(T) == false}
>>> 234: CompletableFuture<Arena> future =
>>> CompletableFuture.supplyAsync(Arena::ofConfined);
>>
>> I believe TestScopedOperations should check for WTE as well?
>
> That test has two methods: `testOpAfterClose` and `testOpOutsideConfinement`,
> which are executed on all the test cases.
Good idea. We could do that in a separate PR.
-------------
PR Review Comment: https://git.openjdk.org/jdk22/pull/42#discussion_r1450537639