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:
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.
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:
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 thatopens
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.