Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.7
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: Core Classes/Modules
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
When you use RubyException.printBacktrace to print out an exception, the first line of the backtrace is omitted. See attached patch. I wondered whether this was deliberate, but I struggle to see why one wouldn't want to see the first line.
Activity
Charles Oliver Nutter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | JRuby 1.7 [ 17049 ] | |
| Assignee | Charles Oliver Nutter [ headius ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
It appears to me that the only case where this makes a difference is when we raise an non-NativeException exception while backtrace style is 'mri'.
As you can see below, the first element of the backtrace is a rather ugly duplicate. So it seems OK for me to skip it. Why this is the case, I have not investigated.
The short of it, though, is that this appears to be a WONTFIX.
Here is the comparison for the backtrace:
I tracked this down to this commit: https://github.com/jruby/jruby/commit/53278235b77a3297d5e7d9cc2642d45edf7a6821