Hi!

"Robert Munteanu" <[email protected]> wrote:
> I am not sure how clean this solution is, but you might want to add the
> following to your feature model
>
>   "framework-properties": {
>     "org.osgi.framework.system.packages.extra": "sun.misc"
>   }
>
> I think you can also set it via the CLI with
>
> -D org.osgi.framework.system.packages.extra=sun.misc

Thank you, yes,
-D org.osgi.framework.system.packages.extra=sun.misc
is a workaround which does help and makes sun.misc.Unsafe3 accessible again to 
the ehcache 3 bundle on Sling Starter 12, though I have an uneasy feeling about 
it. Setting system properties is not a nice thing you should have to do when
deploying an application, and we don't create a feature model for it so far.

This is, however, something different than what happens on Sling 11 - now 
sun.misc is "officially" exported by the felix framework bundle 
http://localhost:9090/system/console/bundles/0 which it isn't on Sling Starter 
11. Not sure whether this is good or bad.

I'm still wondering whether I should open a bug for this, though, since that is 
a sudden change of the behavior when going from 11 to 12. I'm not quite sure 
about that and for which subproject this would be. What do you think?

Thanks and best regards,

Hans-Peter

Reply via email to