Primitive type not being boxed when implementing a Java interface.
------------------------------------------------------------------

                 Key: JRUBY-3166
                 URL: http://jira.codehaus.org/browse/JRUBY-3166
             Project: JRuby
          Issue Type: Bug
          Components: Embedding
    Affects Versions: JRuby 1.1.5
            Reporter: Mark Menard


public interface Foo {
  public Boolean bar ();
}

class FooImpl 
  include Java::Foo
 
  def bar
    true
  end
end

public class FooConsumer {

  public void someMethod () {
    // Get an instance of the Ruby FooImpl.
    Boolean result = fooImpl.bar(); // result is null at this point. It appears 
the primitive boolean is being returned from Ruby.
  }
}

It is possible this might happen for all boxed primitives.

I showed this behavior to Tom at Pro Ruby Conf.

-- 
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