See https://github.com/osgi/osgi/issues/226
Frameworks like Felix and Equinox have depended on being able to use deep reflection on the java.net package in order to handle the factory singletons for URLStreamHandlerFactory and ContentHandlerFactory. Felix and Equinox make use of the Unsafe class in Java to do this seamlessly. But now Unsafe is really going away and we have run out of options to do this seamlessly. In the OSGi issue https://github.com/osgi/osgi/issues/226 we discussed developing a common library that could be used by multiple framework implementations and perhaps even by others like tomcat such that any combination of nesting frameworks or running multiple frameworks on the same JVM would be able to handle the singletons with the use of the library. With that in mind I did start an implementation of such a library: https://github.com/tjwatson/plurl-osgi I have the intention of contributing this to https://github.com/eclipse-osgi-technology as a common place to collaborate on the common plurl library that could be used by both Felix and Equinox. But first I would like to get some interest by the Felix Framework developers in reviewing the proposed project to see if it could also be used by the Felix Framework to replace the way the Framework handles the singletons. Thanks for your time. Tom