IO#seek= with non-fixnum vaule breaks JRuby (and rubyspec run)
--------------------------------------------------------------

                 Key: JRUBY-2531
                 URL: http://jira.codehaus.org/browse/JRUBY-2531
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.1
         Environment: Latest JRuby
            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov
             Fix For: JRuby 1.1.2


Essentially, the following line crashes JRuby:
f.pos = 1.2

The rubyspec failure:

{noformat}
mspec -f s -t j 1.8/core/io/pos_spec.rb
IO#pos=
- sets the offset
Exception in thread "main" java.lang.ClassCastException: org.jruby.RubyFloat 
cannot be cast to org.jruby.RubyFixnum
        at org.jruby.RubyIO.pos_set(RubyIO.java:1291)
        at org.jruby.RubyIOInvoker$pos_set_method_1_0.call(Unknown Source)
        at 
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOne.call(JavaMethod.java:240)
{noformat}

Will fix.

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