Problem with java_import on Android (Ruboto)
--------------------------------------------

                 Key: JRUBY-5541
                 URL: http://jira.codehaus.org/browse/JRUBY-5541
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6RC2
         Environment: On Android using Ruboto 0.5.1
            Reporter: Scott Moyer
            Assignee: Thomas E Enebo


Simple java_imports now throw an exception:

Initializing JRuby...Done
>>[Running toast.rb]
org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `name' 
for #<Java::JavaLang::Package:0x407a8580>
at 
Object.java_import(file:/mnt/asec/org.ruboto.irb-2/pkg.apk!/builtin/javasupport/core_ext/object.rb:61)
at #<Class:0x1405e96d0>.(root)(<script>:2)
=> null

The line:
import 'android.widget.Toast'

Same problem if it is java_import. Java::android.widget::Toast works fine. Same 
problem with core classes like java.lang.Thread. Can't duplicate when not on 
Android.

This works fine with JRuby 1.5.6 and JRuby 1.6.0.RC1. I tried to use the latest 
(today) code on github, but "ant gem" failed.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to