This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: JavaFX unexpected warning
- From: "Sudarshan S Chawathe" <chaw at eip10 dot org>
- To: Arie van Wingerden <xapwing at gmail dot com>
- Cc: kawa at sourceware dot org
- Date: Wed, 31 Oct 2018 05:48:13 -0400
- Subject: Re: JavaFX unexpected warning
- Reply-to: "Sudarshan S Chawathe" <chaw at eip10 dot org>
> It does work, however, I get this unexpected warning:
> .\test.scm:14:29: warning - no known slot 'setStyle' in java.lang.Object
>
> Any ideas why?
Kawa cannot be sure that the Button procedure returns an object of
Button type, and so only assumes it is an Object and then wonders
whether that Object will have the required setStyle method.
> > (define button
Changing the above to something like
(define button ::javafx.scene.control.Button
should fix the problem.
Regards,
-chaw