Subj : RE: WrapFactory.wrapAsJavaObject has null class argument To : netscape.public.mozilla.jseng From : Rod Macpherson Date : Fri Jul 08 2005 04:07 pm Well, I can get the actual class from the object itself and that's what I am using now. The incoming class argument as a convenience initially, even though it's still not clear what it's for. -----Original Message----- From: Attila Szegedi [mailto:szegedia@freemail.hu] Sent: Friday, July 08, 2005 2:00 PM To: Rod Macpherson; mozilla-jseng@mozilla.org Subject: Re: WrapFactory.wrapAsJavaObject has null class argument WrapFactory.wrapNewObject() calls it with null. I think you should semantically assume java.lang.Object.class when you get null. Attila. On Thu, 07 Jul 2005 18:53:19 +0200, Rod Macpherson wrote: > To clarify the question (it is not a common one I am sure of that): > > I am supplying a WrapFactory to the engine. The engine independently > calls wrapAsJavaObject with a valid object but a null class. When does > the engine decide to pass a null value as the argument for the class > parameter? > -- home: http://www.szegedi.org weblog: http://www.jroller.com/page/aszegedi .