JDK-7166955 : (pack200) JNI_GetCreatedJavaVMs needs additional checking
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-05-07
  • Updated: 2013-06-26
  • Resolved: 2012-06-19
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.
JDK 7 JDK 8
7u40Fixed 8 b40Fixed
Description
In pack200, jdk/src/share/native/com/sun/java/util/jar/pack/jni.cpp
the use of JNI_GetCreatedJavaVMs needs some checks, the current code
will work correctly however it might not on other VM implementations.

Adding the additional check will make it more robust on all VM
implementations.

Comments
EVALUATION yes would be good practice.
07-05-2012