Skip to content

scijava native loader must be within the same classloader as the consuming class #49

Open
@wasabii

Description

@wasabii

The JNI specification requires that the classloader of the caller of System.loadLibrary be the same classloader of the class attempting to consume the native methods. Since native-lib-loader tends to be a dependency of other libraries, and it is the mechanism which eventually invokes System.loadLibrary, it must be the case that all classes using native-lib-loader be loaded by the same class loader that loaded it.

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