[jboss-dev] How to get bootstrap classloader
Kabir Khan
kabir.khan at jboss.com
Wed Apr 30 07:43:14 EDT 2008
I need to generate a proxy for java.util.ArrayList using the same
classloader that java.util.ArrayList uses. The problem is that:
ArrayList.class.getClassLoader() == null
since it is the bootstrap classloader. I can think of a few ways to get
hold of the actual loader, but wondered if somebody knows an
elegant/obvious way to get hold of the clasloader?
--
Kabir Khan
JBoss AOP Lead
JBoss, a division of Red Hat
More information about the jboss-development
mailing list