Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Another follow up to parser library loading issue
Parser is present in both `runtime.jar` and `runner.jar` jars, leading to shared library loading issues: ``` Caused by: java.lang.UnsatisfiedLinkError: Native Library <...>/component/libenso_parser.so already loaded in another classloader at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:167) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2418) at java.base/java.lang.Runtime.load0(Runtime.java:852) at java.base/java.lang.System.load(System.java:2025) at org.enso.runtime/org.enso.syntax2.Parser.initializeLibraries(Parser.java:36) ... 43 common frames omitted Caused by: java.lang.UnsatisfiedLinkError: Can't load library: <...>/target/rust/debug/libenso_parser.so at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2422) ``` This change ensures that library is only loaded once.
- Loading branch information