There is serious caching bug in the (generated ?) file jansi_struct.h There is build a cache Termios_FID_CACHE TermiosFc which caches jfieldID in the object. This kind of caching is forbidden. Classes objects could be unloaded and there is no guarantee that the jfieldID after unload and load remains the same. See http://journals.ecs.soton.ac.uk/java/tutorial/native1.1/implementing/refs.html.
This might be also a reason for the issue #17
There is serious caching bug in the (generated ?) file
jansi_struct.hThere is build a cacheTermios_FID_CACHE TermiosFcwhich cachesjfieldIDin the object. This kind of caching is forbidden. Classes objects could be unloaded and there is no guarantee that thejfieldIDafter unload and load remains the same. See http://journals.ecs.soton.ac.uk/java/tutorial/native1.1/implementing/refs.html.This might be also a reason for the issue #17