Did you try calling getClass().getName() on that object to determine what the VM thinks it is? --- Vikrant Venkanna Dessai <[EMAIL PROTECTED]> wrote: > > sub: calling methods through reflection > > I am passing a Hashtable object to a method. This method is invoked > through reflection. When i execute the get on this Hashtable object to > get another object of type Hashtable it throws the ClassCastExceptino > while type casting (frome object to Hashtable) . > > It works fine if called directly without using reflection. > > Does reflection has any such limitations. > How to circumvent this problem. > > Thanks in Advance. > > ____________________________________________________ > To change your JDJList options, please visit: > http://www.sys-con.com/java/list.cfm > > Be respectful! Clean up your posts before replying > ____________________________________________________
===== James Amos Nathaniel Stauffer Stauffer_James @yahoo.com Spam food: [EMAIL PROTECTED] __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ____________________________________________________ To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm Be respectful! Clean up your posts before replying ____________________________________________________
