By the way, I had no trouble finding examples on the web of using findLoadedClass() via reflection. I listed the first 11 below.
Obviously, this hack is known, of interest, and used. I think it deserves to be an issue. > As I said, this change will not be popular but please bear with it until the > extent of the issues uncovered is more widely understood. We need all the > help we can get to identify issues and get them reported (and hopefully > fixed) by the libraries and tools with the technical debt (and we expect a > lot of it will be technical debt). For those working on OpenJDK and the JDK 9 > project then it's very possible that some of these issues will redirect to > the JDK as requests for new APIs or hooks (and I assume will need to be > looked at on a case-by-case basis). > > Any help reporting issues to popular tools and libraries would be appreciated. https://github.com/HotswapProjects/HotswapAgent/blob/master/hotswap-agent-core/src/main/java/org/hotswap/agent/util/classloader/ClassLoaderHelper.java http://stackoverflow.com/questions/482633/in-java-is-it-possible-to-know-whether-a-class-has-already-been-loaded http://stackoverflow.com/questions/12093271/how-do-i-determine-class-loading-order-when-i-inject-them-into-the-systemclasslo https://dzone.com/articles/classloaderlocal-how-avoid http://snacktrace.com/artifacts/net.bytebuddy/byte-buddy-dep/1.3.20/net.bytebuddy.dynamic.loading.ClassInjector https://fossies.org/linux/yacy/source/net/yacy/document/parser/pdfParser.java http://lists.jboss.org/pipermail/jboss-cvs-commits/2010-May/120099.html https://devops.ands.org.au/browse/VT-BUILD-55/artifact/JOB1/Javadoc/src-html/au/org/ands/vocabs/toolkit/utils/ApplicationContextListener.html http://visualvm.sourcearchive.com/documentation/1.2.1-0ubuntu1/ClassLoaderManager_8java-source.html http://code.taobao.org/svn/QLExpress/trunk/src/main/java/com/ql/util/express/ExpressClassLoader.java http://svn.rifers.org/rife/tags/release-1.4/src/framework/com/uwyn/rife/engine/EngineClassLoader.java