Created
March 23, 2011 20:26
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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