unrescued exceptions' console backtrace don't respect previous calls
Exception#set_backtrace
--------------------------------------------------------------------------------------------
Key: JRUBY-5830
URL: http://jira.codehaus.org/browse/JRUBY-5830
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.1
Environment: jruby 1.6.1 (ruby-1.8.7-p330) (2011-05-19 5790d31) (Java
HotSpot(TM) Client VM 1.6.0_24) [Windows 7-x86-java]
Reporter: Roger Pack
Assignee: Thomas E Enebo
{noformat}
def go
raise 'yo'
end
begin
go
rescue Exception => e
e.set_backtrace ['a', 'b']
raise e
end
$ ruby -v bad.rb
ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]
a: yo (RuntimeError)
from b
$ jruby -v bad.rb
jruby 1.6.1 (ruby-1.8.7-p330) (2011-05-19 5790d31) (Java HotSpot(TM) Client VM
1.6.0_24) [Windows 7-x86-java]
RuntimeError: yo
go at bad.rb:2
(root) at bad.rb:6
{noformat}
I believe the difference is unexpected.
Cheers!
-roger-
--
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