Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6RC2
    • Fix Version/s: JRuby 1.6RC3
    • Component/s: None
    • Labels:
      None
    • Environment:
      On Android using Ruboto 0.5.1
    • Number of attachments :
      0

      Description

      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.

        Activity

        Charles Oliver Nutter made changes -
        Field Original Value New Value
        Assignee Thomas E Enebo [ enebo ] Charles Oliver Nutter [ headius ]
        Fix Version/s JRuby 1.6RC3 [ 17147 ]
        Charles Oliver Nutter made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Charles Oliver Nutter made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Charles Oliver Nutter made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Scott Moyer
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: