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

JNI Spec cleanup example code

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Duplicate
    • Affects Version/s: 7
    • Fix Version/s: tbd_major
    • Component/s: docs
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      "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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: