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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • None
    • hotspot

      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.

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

              Created:
              Updated:
              Resolved: