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

JNI Spec cleanup example code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • tbd
    • 7
    • docs
    • None
    • generic
    • generic

      "When AttachCurrentThread() fails you should not
      trust the value in the penv argument, even though I could not actually
      find a relevant passage in the JNI "spec" book which states that to be
      the case (it does include code snippets that promote that use, but confusingly
      also snippets that do not check the return value before dereferencing
      the penv argument)."

      This should be cleaned up.

            zgu Zhengyu Gu
            sbohne Steve Bohne (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: