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

JNI Spec for EnsureLocalCapacity has no throws clause but docs say OOME may be thrown

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:

      Description

      http://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/functions.html#ensure_local_capacity

      says
      Ensures that at least a given number of local references can be created in the current thread. Returns 0 on success; otherwise returns a negative number and throws an OutOfMemoryError.

      However unlike most functions that throw an exception it is missing a "THROWS:" clause in the docs.
      Consequently I almost missed it *and* am unsure if it should in fact have one.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                prr Philip Race
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: