JDK-5031222 : JDK1_1InitArgs no longer supported
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P3
  • Affected Version: 6
  • OS: generic
  • CPU: generic
  • Submit Date: 2004-04-14
  • Updated Date: 2017-05-16
  • Resolved Date: 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 Availabitlity Release.

To download the current JDK release, click here.
JDK 6
6 b73Fixed
Related Reports
Relates :  
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 Moving this structure to jvm.h instead.
2006-02-02

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
2004-06-14

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