Chapter 13. JNI Functions

This chapter specifies the JNI functions. We will use the term “must” to describe the restrictions placed on JNI programmers. For example, when a certain JNI function must receive a nonNULL object, it is the programmer’s responsibility not to pass NULL to that function. As a result, a JNI implementation does not need to check for possibly receiving NULL pointers in that function. If the programmer passes NULL to that function, the resulting behavior is undefined.

We will begin with a summary of JNI functions. The main body of the chapter contains the detailed specifications of all JNI functions.

Summary of the JNI Functions

The JNI functions fall into one of four categories depending on where they are defined and what they ...

Get Java™ Native Interface: Programmer’s Guide and Specification, The now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.