-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
I noticed some very minor issue with the exception backtraces in JRuby 9.2.0.0: there is a core method call missing in the output of this script:
puts RUBY_DESCRIPTION
def make_error
1 / 0
end
begin
make_error
rescue => e
puts e
puts e.backtrace
endSee Actual Behavior below for the program output when running with JRuby 9.2.0.0.
Normal Ruby exceptions (via raise) show up correctly, and so do pure Java exceptions.
Environment
jruby -v:
jruby 9.2.0.0 (2.5.0) 2018-05-24 81156a8 Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 +jit [darwin-x86_64]
No JRUBY_OPTS set
OS:
Darwin MS-DOS6.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64
Expected Behavior
Same as in JRuby 9.1.17.0 -- there should be a call to the / method somewhere in the backtrace:
jruby 9.1.17.0 (2.3.3) 2018-04-20 d8b1ff9 Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 +jit [darwin-x86_64]
divided by 0
org/jruby/RubyFixnum.java:564:in `/'
./thing.rb:4:in `make_error'
./thing.rb:8:in `<main>'
For comparison, here's the same script run with MRI 2.5.0:
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
divided by 0
./thing.rb:4:in `/'
./thing.rb:4:in `make_error'
./thing.rb:8:in `<main>'
Actual Behavior
jruby 9.2.0.0 (2.5.0) 2018-05-24 81156a8 Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 +jit [darwin-x86_64]
divided by 0
./thing.rb:4:in `make_error'
./thing.rb:8:in `<main>'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels