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.
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.
- duplicates
-
JDK-4907359 JNI spec should describe functions more strictly
-
- Closed
-
- relates to
-
JDK-4907359 JNI spec should describe functions more strictly
-
- Closed
-