IHTSDO / snomed-owl-toolkit

The official SNOMED CT OWL Toolkit. OWL conversion, classification and authoring support.
Other
92 stars 19 forks source link

JVM warning from Google Guice transient dependency will cause failures in future java versions #61

Closed kaicode closed 2 years ago

kaicode commented 2 years ago

When the OWL toolkit starts classification or OWL conversion it produces the following warning:

2022-02-21 11:51:27,907 [INFO  ] [main] org.snomed.otf.owltoolkit.conversion.RF2ToOWLService - Loading RF2 files
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (jar:file:/Users/kai/c/snomed-owl-toolkit/target/snomed-owl-toolkit-3.0.7-SNAPSHOT-executable.jar!/BOOT-INF/lib/guice-4.0.jar!/) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

These warnings are also shown during startup of Snowstorm. In the near future I expect java will cause these applications to fail because of concerns.

The Guice library causing these issues is being pulled in by the old version of the OWL-API dependency.

kaicode commented 2 years ago

Test this on Java 17! See #63.