Skip to content

classgraph-4.8.19

Compare
Choose a tag to compare
@lukehutch lukehutch released this 22 Mar 15:50
  • 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.