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).