Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8287206

Use WrongThreadException for confinement errors

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 19
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: