Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix OsgiLocator CNF and suppress XStream warnings on Java 9+ (#991)
Updates the path used with the patch-module options to fix the following warning on Java 9+: WARNING: package org.apache.karaf.specs.locator not in java.base Error starting karaf activator org.apache.karaf.specs.activator.Activator: org/apache/karaf/specs/locator/OsgiLocator Adds a few more "add-opens" to the Karaf scripts so we can suppress the warnings on Java 9+ caused by XStream's reflection usage. Because XStream still works without any issues on Java 11 there is no need for users to see these warnings: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/openhab/userdata/cache/org.eclipse.osgi/66/0/bundleFile) to field java.lang.reflect.Proxy.h WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields 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 Related to #768 Signed-off-by: Wouter Born <[email protected]>
- Loading branch information