From: Per Bothner <per@bothner.com>
To: Peter <craven@gmx.net>, kawa@sourceware.org
Subject: Re: Android problems
Date: Tue, 23 May 2017 19:35:00 -0000 [thread overview]
Message-ID: <fd09b77e-e5ff-8878-146f-8b1c7bff18bb@bothner.com> (raw)
In-Reply-To: <8760gy4ikw.fsf@nexoid.at>
I checked in a fix for the following. (Only into the master branch; I can
cherry-pick it into the kawa-2.4 branch if requested.)
I also checked in a testcase dericed from yours, but not Android-dependent.
It 'stestsuite/nesting-1.scm.
On 05/18/2017 02:31 AM, Peter wrote:
> 2) In the following code, I get a kawa segfault. It seems to be related
> to the anonymous inner class, if I factor that out, things work fine.
>
> (define-simple-class test (<android.app.Activity>)
> ((onCreate (savedInstanceState :: <android.os.Bundle>)):: void
> (invoke-special <android.app.Activity> (this) 'onCreate savedInstanceState)
> (let* ((self (this)))
> (let* ((adpt (object (<android.widget.ArrayAdapter>)
> ((*init*)
> (invoke-special <android.widget.ArrayAdapter> (this) '*init* self (static-field android.R$layout 'simple_list_item_1)))
> ((getView (position :: int) (convert-view :: android.view.View) (parent :: android.view.ViewGroup)) :: android.view.View
> #!null)))
> (lv (<android.widget.ListView> self adapter: adpt)))
> (setContentView lv)))))
>
>> make -k
> CLASSPATH=kawa.jar:/opt/android-sdk/platforms/android-14/android.jar java kawa.repl -d bin/classes -P test. --module-static-run --warn-undefined-variable --warn-unknown-member --warn-invoke-unknown-method -C foo.scm
> (compiling foo.scm to test.foo)
> foo.scm:6: internal error while compiling foo.scm
> java.lang.NullPointerException
> at gnu.bytecode.Scope.getVariable(Scope.java:105)
--
--Per Bothner
per@bothner.com http://per.bothner.com/
next prev parent reply other threads:[~2017-05-23 19:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-18 9:31 Peter
2017-05-18 16:57 ` Per Bothner
2017-05-23 19:35 ` Per Bothner [this message]
2017-05-24 13:28 ` Peter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fd09b77e-e5ff-8878-146f-8b1c7bff18bb@bothner.com \
--to=per@bothner.com \
--cc=craven@gmx.net \
--cc=kawa@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).