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

JNI methods fail to check for asynchronous exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 5.0
    • 1.4.2
    • hotspot
    • None
    • tiger
    • generic
    • generic


      From http://java.sun.com/j2se/1.4/docs/guide/jni/spec/design.doc.html#17629 :

      Asynchronous Exceptions

      In cases of multiple threads, threads other than the current thread may
      post an asynchronous exception. An asynchronous exception does not
      immediately affect the execution of the native code in the current
      thread, until:

          * the native code calls one of the JNI functions that could raise
            synchronous exceptions, or

          * the native code uses ExceptionOccurred() to explicitly check for
            synchronous and asynchronous exceptions.

      Note that only those JNI function that could potentially raise
      synchronous exceptions check for asynchronous exceptions.

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

      Bug: None of the JNI methods check for asynchronous exceptions
            before executing their own particular function.

            myangsunw Mingyao Yang (Inactive)
            foliversunw Fred Oliver (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: