JDK-5031222 : JDK1_1InitArgs no longer supported
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-04-14
  • Updated: 2017-05-16
  • Resolved: 2006-02-18
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.
6 b73Fixed
Related Reports
Relates :  
Name: nl37777			Date: 04/13/2004

The JNI 1.5 specification at 
discusses at length the JDK1_1InitArgs struct and its use in 
initializing the JVM. Looking at the hotspot source code, it seems this 
struct is no longer supported. The code in JNI_GetDefaultJavaVMInitArgs 
looks at the version field and returns an error if it doesn't indicate 
at least version 1.2, i.e., that it's really a JavaVMInitArgs. 
JNI_CreateJavaVM simply casts the corresponding parameter value to a 

I'd suggest rewriting the specs to remove all references to 
JDK1_1InitArgs and its use, and officially change the type of the third 
argument of JNI_CreateJavaVM to JavaVMInitArgs*. Calls to 
JNI_GetDefaultJavaVMInitArgs now also seem optional; it may be useful 
to document this as well.

EVALUATION Moving this structure to jvm.h instead.

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang

EVALUATION ###@###.### 2004-04-21 The declaration of JDK1_1InitArgs should be removed from jni.h as soon as possible. (I raised the priority.) A cast operation in jni.cpp needs to change as a result. Will make the spec/code change in Mustang. ###@###.### 2004-05-04