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

JNI: Doc describing native intf handling of exceptions needs example

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P5
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.1
    • Fix Version/s: None
    • Component/s: docs
    • Labels:
      None
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description



      Name: sgC58550 Date: 06/27/97


      In your online guide to the JNI, you mention (in docs/guide/jni/spec/design.doc.html#770):

      •The native method can choose to return immediately, causing the exception to be thrown in the Java
      code that initiated the native method call.

      I have tried many cominations to get this to work, but all I get is one of those windows-error dialogues
      that pops up and says runtime error, etc., abnormal program termination, whenever
      I throw an exception in a JNI implementation. Is your doc wrong, or could you provide an example to
      demonstrate the above? Perhaps I am using it wrong - I really need to understand this for the product
      I am working on.

      company - ITI , email - ###@###.###
      ======================================================================

      [hamilton 2 July 1997]
      Full URL: http://java.sun.com/products/jdk/1.1/docs/guide/jni/spec/design.doc.html#17911

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sgoodsunw Sheri Good (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: