ClassGraph v4.8.94 Release Notes
Release Date: 2020-12-10 // about 4 years ago-
No data yet ๐
You can check the official repo
Previous changes from v4.8.93
-
A few changes to classloading:
- If
.overrideClassLoaders(...)
or.overrideClasspath(...)
is called before.scan()
, then only the overrides are used (ClassGraph will not fall back to trying any other known classloaders). This might break things for some users, but it matches the expectation that should have been conveyed by the API. ๐ 2. If you run a scan inside a scan, and you call.overrideClassLoaders(MyClass.class.getClassLoader())
, whereMyClass
was itself loaded byClassGraph
in the outer scan, usingscanResult.getClassInfo("mypackage.MyClass").loadClass()
, then the override classloader is actually an instance ofClassGraphClassLoader
. This was not supported before, but it supported now as of this release. If you use this, then any classloading in the inner scan will first try loading classes with theClassGraphClassLoader
instance from the outer scan, and if that fails, then the inner scan'sClassGraphClassLoader
will be tried. This is to allow for classes to be compatible between the outer scan and the inner scan, in cases where both scans find the same classes. (Classes that are identical but were loaded by different classloaders are not seen by the JRE as being the same class.) (#485, thanks to @TheSpiritXIII for the bug report.)
- If