This patch tweaks the foreign API to use the newly added `WrongThreadException` 
instead of `IllegalStateException` to report confinement errors.

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

Commit messages:
 - Merge branch 'master' into wrong_thread_ex
 - Initial push

Changes: https://git.openjdk.java.net/jdk/pull/8865/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8865&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8287206
  Stats: 254 lines in 12 files changed: 150 ins; 1 del; 103 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8865.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8865/head:pull/8865

PR: https://git.openjdk.java.net/jdk/pull/8865

Reply via email to