RFR: 8287206: Use WrongThreadException for confinement errors
Uwe Schindler
uschindler at openjdk.java.net
Wed May 25 17:51:14 UTC 2022
On Tue, 24 May 2022 09:26:44 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This patch tweaks the foreign API to use the newly added `WrongThreadException` instead of `IllegalStateException` to report confinement errors.
I changed the PR on our side, `IllegalStateException` is fine, if you catch it as close as possible to the code calling varhandles and so on (which is the case for Lucene). Thanks for this PR, makes life much easier!
-------------
PR: https://git.openjdk.java.net/jdk/pull/8865
More information about the nio-dev
mailing list