bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #32010] Runtime java.lang.NoSuchFieldError


From: anonymous
Subject: [Bug-kawa] [bug #32010] Runtime java.lang.NoSuchFieldError
Date: Wed, 29 Dec 2010 23:25:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13

URL:
  <http://savannah.gnu.org/bugs/?32010>

                 Summary: Runtime java.lang.NoSuchFieldError
                 Project: Kawa
            Submitted by: None
            Submitted on: Wed 29 Dec 2010 11:25:17 PM UTC
                Category: Code generation
                Severity: 3 - Normal
              Item Group: Run-time exception
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I ran the following code, compiled with kawa (options: --with-android
--disable-xquery --disable-jemacs).  It crashed with
"java.lang.NoSuchFieldError: kawa.android.hello.Lit0." upon the invocation of
button's onClickListener.

(require 'android-defs)

(activity hello
  (on-create-view
   (let* ((tv (android.widget.TextView (this)))
          (button (android.widget.Button (this)))
          (items '("Foo" "Bar" "Baz")))
     (tv:setText "Hello!")
     (button:setText "Bar!")
     (button:setOnClickListener
      (lambda (v)
        (tv:setText (as java.lang.CharSequence (car items)))
        #!null))
     (android.widget.LinearLayout
      (this)
      orientation: android.widget.LinearLayout:VERTICAL
      view: tv
      view: (android.widget.TextView
             (this) text: "Foo!")
      view: button))))

I took a look at the dump of the compiled hello.class file, and there was in
fact no Lit0 field defined.

I have attached the relevant .class files just in case they may prove useful
for some reason.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 29 Dec 2010 11:25:17 PM UTC  Name: hello.class  Size: 1kB   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=22318>
-------------------------------------------------------
Date: Wed 29 Dec 2010 11:25:17 PM UTC  Name: hello$0.class  Size: 1kB   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=22319>
-------------------------------------------------------
Date: Wed 29 Dec 2010 11:25:17 PM UTC  Name: hello$frame.class  Size: 505B  
By: None

<http://savannah.gnu.org/bugs/download.php?file_id=22320>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32010>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]