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.
There is serious caching bug in the (generated ?) file
jansi_struct.h
There is build a cacheTermios_FID_CACHE TermiosFc
which cachesjfieldID
in the object. This kind of caching is forbidden. Classes objects could be unloaded and there is no guarantee that thejfieldID
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