Skip to content

Caching bug in (generated ?) code #19

@tomasjura

Description

@tomasjura

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions