This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
warning when invoking method on java object
- From: Sonny To <son dot c dot to at gmail dot com>
- To: Kawa mailing list <kawa at sourceware dot org>
- Date: Sun, 17 Sep 2017 07:34:11 -0700
- Subject: warning when invoking method on java object
- Authentication-results: sourceware.org; auth=none
(context:startActivity i)
gives a warningi
/dev/stdin:23:2: warning - no known slot 'startActivity' in java.lang.Object
it works but why is it giving a warning?
I could do
((as android.app.Application context):startActivity i)
and not get a warning but its more verbose. what is more idiomatic? I
prefer the former but I am concern about getting warnings.