StringIO's methods (new and truncate) should raise appropriate exceptions
-------------------------------------------------------------------------

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


JRuby fails the following rubyspecs (which I just added):

- StringIO.new raises EACCES if the provided string is frozen and the mode is 
writable
- StringIO.new raises TypeError if the provided string is frozen and the mode 
is truncate
- StringIO#truncate raises an Errno::EINVAL if the length argument is negative

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