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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.