-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b73
-
generic
-
generic
Name: nl37777 Date: 04/13/2004
The JNI 1.5 specification at
http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/invocation.html
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
JavaVMInitArgs.
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.
======================================================================
The JNI 1.5 specification at
http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/invocation.html
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
JavaVMInitArgs.
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.
======================================================================
- relates to
-
JDK-6363396 JDK1_1InitArgs no longer supported (doc change)
-
- Resolved
-
-
JDK-6223012 Sync process for Hotspot/J2SE shared definitions (header files, etc...)
-
- Closed
-