Native Method Bugs

The native-method support is still experimental, and the interface described below is subject to change. Herewith, I simply document all the known bugs. If you find others, please enlighten me!

JAVAHEADER

The makefile output assumes the variable JAVAHEADER is set to javah or equivalent.

Only one STUBS variable

For now, the names of all the .h and .c files generated appear in the makefile variable STUBS (akin to CLASSES). Also, at the moment, there is no way to change the variable name used.

Extraneous headers built

Due to the way the dependency graph is handled internally, sometimes extra .h and .c files may be built. I'd like to fix this bug by changing the internals. But that will not happen for a few weeks (at least); so I'm releasing the code as-is. You can work around this by just ignoring these extra headers and stubs. ;-)

Classes in packages

The native stuff only works if the .java files appear in their proper subdirectories; i.e. class x.y.foo must appear in a file in the x/y subdirectory. The .c and .h files will appear in the top-level directory, or you can re-direct them with 'javah -d', but only globally (using JAVAHEADER variable).