I found it interesting that int.class returns "int" -- I'd never have thought to try this as I've never considered native types to be classes, just arrays of native types...
> -----Original Message----- > From: Blair Wyman [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22, 2003 11:39 AM > To: JDJList > Subject: [jdjlist] Re: Class.class > It's a handy construct for uses like Reflection, where arrays > of Class are passed to indicate parameter types for reflected > methods, as in: > > Constructor ctor = String.class.getConstructor( > new Class[] {byte[].class, int.class} > ); > > HTH. > > -blair ____________________________________________________ To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm Be respectful! Clean up your posts before replying ____________________________________________________
