Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5031222

JDK1_1InitArgs no longer supported

    Details

    • Subcomponent:
    • Resolved In Build:
      b73
    • CPU:
      generic
    • OS:
      generic

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kamg Keith Mcguigan
                Reporter:
                nlindenbsunw Norbert Lindenberg (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: