Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Broken JPMS modules #12

Open
io7m opened this issue Dec 31, 2021 · 0 comments
Open

Broken JPMS modules #12

io7m opened this issue Dec 31, 2021 · 0 comments
Assignees
Labels

Comments

@io7m
Copy link
Collaborator

io7m commented Dec 31, 2021

The OSGi bundles combine the natives modules into bundles in order for them to use the standard OSGi library loading mechanisms. Unfortunately, the natives modules include module descriptors that look like this:

module org.lwjgl.jemalloc.natives {
  requires org.lwjgl.jemalloc;

  opens linux.x64.org.lwjgl.jemalloc;
}

The important line is the opens line: The natives modules are open for reflection, and this is used to find native libraries when the bundles are used on the JPMS module path. Without that opens section, the native libraries can't be located when the bundles are used on the JPMS module path. I'm not certain how to fix this; we might need to rewrite the module descriptors when multiple modules are combined into a single bundle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant