JDK-6629681 : JNI Spec cleanup example code
  • Type: Bug
  • Component: docs
  • Sub-Component: hotspot
  • Affected Version: 7
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2007-11-14
  • Updated: 2024-04-12
  • Resolved: 2014-04-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Duplicate :  
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.