Hi Kabir,
this should work
ClassLoader.getSystemClassLoader().getParent()
On Apr 30, 2008, at 1:43 PM, Kabir Khan wrote:
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
_______________________________________________
jboss-development mailing list
jboss-development(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-development