dup'ed stream reopened by IO.new stream from file descriptor appears to get lost
--------------------------------------------------------------------------------

                 Key: JRUBY-1987
                 URL: http://jira.codehaus.org/browse/JRUBY-1987
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
            Reporter: Charles Oliver Nutter
             Fix For: JRuby 1.1


Yeah, I don't like the description either...but I don't know how else to 
explain it:

{code}
puts 'begin'
x = IO.new(STDOUT.fileno)
puts 'after IO.new'
y = x.dup
x.reopen(y)
puts 'after reopen of dup'
{code}

On MRI, all three lines print. On JRuby, only the first two print. This causes 
the rubyspec core/io/printf_spec.rb to break spec output for the rest of the 
run.

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