> The way out would be to either: > > 1. adjust the exported package lists for Java 8 > 2. deploy new bundles only for Java 9 > > 1. is a risky proposition, especially since it can affect backwards > compatibility > 2. requires further work in the provisioning model, and maybe a bad > idea to invest in since the feature model is hopefully close to > complete. >
I would propose not tweak the actual deployment but rather leverage OSGi execution environments (OSGi Core Spec 3.4). That should lead to the fact that ... A bundle can only resolve if the framework is running on a VM which implements one of the listed required execution environments. ...
