United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-5031222 : JDK1_1InitArgs no longer supported

Details
Type:
Bug
Submit Date:
2004-04-14
Status:
Closed
Updated Date:
2013-06-21
Project Name:
JDK
Resolved Date:
2006-02-18
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Relates:
Relates:

Sub Tasks

Description
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.
======================================================================

                                    

Comments
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
                                     
2004-05-04
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mustang


                                     
2004-06-14
EVALUATION

Moving this structure to jvm.h instead.
                                     
2006-02-02



Hardware and Software, Engineered to Work Together