This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
RE: Class types
- From: "Dominique Boucher" <dominique dot boucher at nuecho dot com>
- To: "'Kawa List'" <kawa at sources dot redhat dot com>
- Date: Thu, 13 May 2004 09:18:44 -0400
- Subject: RE: Class types
- Reply-to: <dominique dot boucher at nuecho dot com>
Chris,
I guess you try to obtain the Java class object corresponding to a Kawa
class.
Have you tried something like that:
(define (foo)
(invoke (as <gnu.bytecode.ClassType> <java.util.Date>) 'getClass))
Dominique Boucher, Ph.D.
Lead Developer
Nü Écho Inc
www.nuecho.com
> -----Original Message-----
> From: kawa-owner@sources.redhat.com
> [mailto:kawa-owner@sources.redhat.com] On Behalf Of Chris Dean
> Sent: 13 mai 2004 03:09
> To: Kawa List
> Subject: Class types
>
>
> How do I get the class of a Java type without generating a warning?
> This, for example, gives a warning:
>
> (define (foo)
> (invoke <java.util.Date> 'getClass))
>
> % java kawa.repl --warn-undefined-variable -C Foo.scm
> (compiling Foo.scm)
> Foo.scm:11:11: warning - no declaration seen for <java.util.Date>
>
> Regards,
> Chris Dean
>