Skip to content

Instantly share code, notes, and snippets.

@kaiwren
Created March 23, 2011 20:26
Show Gist options
  • Save kaiwren/883882 to your computer and use it in GitHub Desktop.
Save kaiwren/883882 to your computer and use it in GitHub Desktop.
Redefining backtrace on Exception causes message to break on JRuby 1.6.0
e = Exception.new
puts e.message # "Exception"
def e.backtrace
[]
end
puts e.message # "Exception" on 1.8.6/1.8.7/1.9.2, #<Class:0x11dff2e1b> on JRuby 1.6.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment