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

Use WrongThreadException for confinement errors

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 19
    • None
    • core-libs
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: