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.