IO.read should allow nil for second argument
--------------------------------------------

                 Key: JRUBY-2144
                 URL: http://jira.codehaus.org/browse/JRUBY-2144
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC2
         Environment: Windows XP, Java 1.5
            Reporter: Daniel Berger
            Priority: Trivial


MRI allows an explicit nil for the second form of IO.read. It's the same as 
passing no argument
{noformat}
IO.read('test.txt', nil) # No problem in MRI, raises a TypeError in JRuby
{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


Reply via email to