Lots of JRuby crashes on ARGF methods
-------------------------------------

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


New rubyspecs for ARGF have been added and JRuby crashes on many of them.

Here's a few examples:

1. jruby -e "p ARGF.read; p ARGF.to_io.class"  some-existing-file # ==>

Exception in thread "main" java.lang.NullPointerException
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.pollAndGetClass(CallSite.java:257)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:326)

2. jruby -e "p ARGF.read; p ARGF.fileno"  some-existing-file #==>

Exception in thread "main" java.lang.NullPointerException
        at org.jruby.RubyArgsFile.fileno(RubyArgsFile.java:124)
        at org.jruby.RubyArgsFileInvoker$fileno_s_method_0_0.call(Unknown 
Source)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:123)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:333)

3. jruby -e "ARGF.eof?" #==>

Exception in thread "main" java.lang.NullPointerException
        at org.jruby.RubyArgsFile.eof(RubyArgsFile.java:315)
        at org.jruby.RubyArgsFileInvoker$eof_s_method_0_0.call(Unknown Source)

And so on.

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