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

JVMTI spec: extension functions must return error code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 5.0
    • hotspot
    • None
    • tiger
    • generic
    • generic

      Extension functions were designed to return an error code -- there is even
      a parameter in there definition which specifies which error codes they
      return. But due to a cut and paste typo, the extension function type
      returns a void:

      typedef void (JNICALL *jvmtiExtensionFunction)
                      (const jvmtiEnv* env, ...);

      this should be:


      typedef jvmtiError (JNICALL *jvmtiExtensionFunction)
                      (const jvmtiEnv* env, ...);

            rfield Robert Field (Inactive)
            rfield Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: