[jboss-dev] How to get bootstrap classloader

Julien Viet julien at jboss.com
Wed Apr 30 08:00:33 EDT 2008


ahit's not the good one I think :-)

On Apr 30, 2008, at 1:58 PM, Julien Viet wrote:

> 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 at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-development
>
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development




More information about the jboss-development mailing list