github classgraph/classgraph classgraph-4.8.6

latest releases: classgraph-4.8.172, classgraph-4.8.171, classgraph-4.8.170...
5 years ago

Changes the order in which classloaders are tried by ClassInfo#loadClass(): try context classloader(s) first, then the classloader for the classpath element that contained the classfile (rather than the other way around). This fixes a classloading issue in Tomcat, which caused a class to be loaded twice in different classloaders (#322, thanks to @nebosuke for the report).

The new classloading order is probably a saner default than the previous order, but this change may cause classloading issues in other runtime environments. Please file a bug if you see any weird behavior (in particular, casts or instanceof tests failing when it looks like they shouldn't fail).

Don't miss a new classgraph release

NewReleases is sending notifications on new releases.