When calling setExternalLoader, we append to the global package.loaders / package.searchers only once by using an AtomicReference. However, openLibrary("package") or openLibraries() reset the loaders / searchers. Our modifications will then be gone and never get restored.
When calling
setExternalLoader
, we append to the globalpackage.loaders
/package.searchers
only once by using anAtomicReference
. However,openLibrary("package")
oropenLibraries()
reset the loaders / searchers. Our modifications will then be gone and never get restored.