Duplicate :
|
|
Relates :
|
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.
|