Long stored in RubyArray is returned as Byte
--------------------------------------------
Key: JRUBY-4081
URL: http://jira.codehaus.org/browse/JRUBY-4081
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.4.0RC1
Environment: MacOSX 10.6.1, Sun Java 1.6.0_15, JRuby 1.4.0RC1
Reporter: Uwe Kubosch
Priority: Critical
Fix For: JRuby 1.4
This test fails:
{noformat}
package org.jruby.test;
import org.jruby.Ruby;
import org.jruby.RubyArray;
public class TestRubyArray extends TestRubyBase {
public TestRubyArray(final String name) {
super(name);
}
@Override
protected void setUp() throws Exception {
super.setUp();
if (runtime == null) {
runtime = Ruby.newInstance();
}
eval("$h = ['foo','bar']");
}
public void testStoreLong() throws Exception {
final RubyArray arr = runtime.newArray();
arr.set(0, Long.valueOf(0));
assertEquals(Long.valueOf(0), arr.get(0));
}
}
{noformat}
--
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