Use WrongThreadException for confinement errors

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 19
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      In a number of API points, `java.lang.foreign` uses `IllegalStateException` when a method is called from the "wrong thread".

      Loom has recently added a new exception type for this: WrongThreadException. The foreign API should use it.

            Assignee:
            Maurizio Cimadamore
            Reporter:
            Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: