STDERR.reopen causes exception output to be lost
------------------------------------------------
Key: JRUBY-6154
URL: https://jira.codehaus.org/browse/JRUBY-6154
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.6.5
Environment: Linux desk4 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13
19:39:17 UTC 2011 x86_64 GNU/Linux
jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit
Server VM 1.6.0_26) [linux-amd64-java]
Reporter: Alex Young
Attachments: doit.rb
If you reopen STDERR and subsequently cause an exception to be raised without
rescuing it, the error output is lost and appears neither in the reopened
destination nor the original terminal.
See the attached file for an example; the output:
doit.rb:1:in `foo': wrong number of arguments (0 for 1) (ArgumentError)
from doit.rb:10:in `<main>'
is expected to be in the file "err", but the file is empty after execution.
--
This message is automatically generated by JIRA.
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