Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support overriding `Exception#message` #5136
In CRuby, an uncaught exception messages users with the exception's message, considering if it's overriden or not.
class A < StandardError def message 'hello' end end raise A
This pull request changes JRuby behaviour similar to CRuby's.
Note that if the overriden
This pullreq already considers that.
class A < StandardError def message raise 'boom boom!' end end raise A
I'm not fluent in Java, so please let me know if there's somewhere you don't feel good! I'm more than happy to update my commit.