question about class loading
David Bélanger <[email protected]>
| Newsgroups | gmane.comp.java.vm.sablevm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Consider this code:
cl = new UserClassLoader();
cl.loadClass("SomeClass").getDeclaredMethods()[0].getParameterTypes();
And the class corresponding to one of the parameter of the method
accessed through reflection has not been loaded when getParameterTypes()
is invoked. Which class loader
initiates the class loading?
I would say UserClassLoader? Is that right?
Thanks,
David
---
David Bélanger
Web page: http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt