-
-
Notifications
You must be signed in to change notification settings - Fork 925
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d684a31f7d4c^
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 415bef51c054
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 2 commits
- 31 files changed
- 1 contributor
Commits on Feb 27, 2018
-
Initial pass for parallel exception hierarchy. #4781
This work is the start of producing a Java-domain Throwable hierarchy that matches the Ruby hierarchy, so that Ruby exceptions can be caught using their actual Throwable type rather than using RaiseException and checking the exceptions type manually. A few changes of note: * RubyException has most logic moved up to new AbstractRubyException. * All RubyException now hold a reference to their RaiseException, created lazily once as needed. * Throw a Ruby exception using the form `throw ex.getRaiseException()`. * Provide construction logic specific to a given exception by overriding createRaiseException. * The nativeException parameter is eliminated from all exception construction and initialization paths. It was unused.
Configuration menu - View commit details
-
Copy full SHA for d684a31 - Browse repository at this point
Copy the full SHA d684a31View commit details -
Begin propagating exception hierarchy down stack.
This forms the meat of wiring up the new parallel exception hierarchy. All public constructors of RaiseException are now deprecated and unused. RaiseException.from() forms take their place and know how to properly construct a Ruby exception and wrap it with an appropriate RaiseException subclass. Three native exceptions are added, mapping to the Ruby exception type of the same name: Exception, StandardError, and SignalException. One location in the code that caught RaiseException is now able to catch StandardError (RubyNumeric coerce logic). There are likely others. See #4781.
Configuration menu - View commit details
-
Copy full SHA for 415bef5 - Browse repository at this point
Copy the full SHA 415bef5View commit details
There are no files selected for viewing