You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed an issue in the shutdown hook that could cause a NoClassDefFoundError during JVM shutdown if ScanResult#close() was not called by the user before shutdown, and the classloader's shutdown hook was called before ClassGraph's shutdown hook, which prevented further classloading (#331, thanks to @gitmotte for the report, and for providing a full testcase project).
Added support for the Plexus ClassWorlds ClassRealm classloader.
Made it possible to specifically scan rt.jar by calling new ClassGraph().overrideClasspath(rtJarPath) (thanks to @jechlin for requesting).
In ClassGraphClassLoader, call findLoadedClass() at beginning of findClass(), so that cached classes are returned more quickly.
Refactored and cleaned up ClassLoaderHandler code, and code that finds the classloader delegation order.