From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80739 invoked by alias); 31 Oct 2018 11:17:58 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 80718 invoked by uid 89); 31 Oct 2018 11:17:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*c:alternative, now!, now X-HELO: mail-it1-f170.google.com Received: from mail-it1-f170.google.com (HELO mail-it1-f170.google.com) (209.85.166.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 31 Oct 2018 11:17:55 +0000 Received: by mail-it1-f170.google.com with SMTP id p11-v6so1147022itf.0 for ; Wed, 31 Oct 2018 04:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kcgvq7fTRAPTsNJNRzkB+Pc1XlQoikxmzUg8WsfsgjQ=; b=V5IV7+xUtJ6BKIj4lTWnKSdtrTES/L5i1/3gbK93pbpok4dUeJZfEG4UgLCiDMB5mt G0s+/h94L8VR/T4WXU5Ao5bEVcL+w/9gLKlgHh3E2qj3SHtZRrS6POLl15J6pjRof6Tv qSYoc2Adgz97xwtCeUJ7q4blZkZhbggzOpCj9CyZ5rTGyDTGdHzeeowHMuDwUwy9k1fc XR2kQgKtqIWrJ4J7mSE/ncHVlZ1R0oE5GH5l9fQ80A9yen7AzZ2616eqUwKzldl6yp0N ysyXvCrgJI7OvpnYxrjc8BaCluzuQlH1hlXt1fNmpFGWLrpHTvTXkZhwvARentgZxFHn H8Jg== MIME-Version: 1.0 References: <1301.1540979293@vpaur.eip10.org> In-Reply-To: <1301.1540979293@vpaur.eip10.org> From: Arie van Wingerden Date: Wed, 31 Oct 2018 11:17:00 -0000 Message-ID: Subject: Re: JavaFX unexpected warning To: chaw@eip10.org Cc: kawa@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-q4/txt/msg00017.txt.bz2 Thanks for the tip, works OK now! So I have to consider two things: - I can specify type hints in Kawa - and I'll have to get used to the underlying Java api then ;) /Arie Op wo 31 okt. 2018 om 10:48 schreef Sudarshan S Chawathe : > > 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 > >