Skip to content

Commit

Permalink
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/RubyNoMemoryError.java
Original file line number Diff line number Diff line change
@@ -35,8 +35,8 @@
*
* @see NoMemoryError
*/
@JRubyClass(name="NoMemoryError", parent="StandardError")
public class RubyNoMemoryError extends RubyStandardError {
@JRubyClass(name="NoMemoryError", parent="Exception")
public class RubyNoMemoryError extends RubyException {
protected RubyNoMemoryError(Ruby runtime, RubyClass exceptionClass) {
super(runtime, exceptionClass);
}
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyNumeric.java
Original file line number Diff line number Diff line change
@@ -483,7 +483,7 @@ protected final RubyArray doCoerce(ThreadContext context, IRubyObject other, boo
final IRubyObject result;
try {
result = coerceBody(context, other);
} catch (StandardError e) { // e.g. NoMethodError: undefined method `coerce'
} catch (StandardError e) {
context.setErrorInfo($ex); // restore $!
RubyWarnings warnings = context.runtime.getWarnings();
warnings.warn("Numerical comparison operators will no more rescue exceptions of #coerce");
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/RubySecurityError.java
Original file line number Diff line number Diff line change
@@ -35,8 +35,8 @@
*
* @see SecurityError
*/
@JRubyClass(name="SecurityError", parent="StandardError")
public class RubySecurityError extends RubyStandardError {
@JRubyClass(name="SecurityError", parent="Exception")
public class RubySecurityError extends RubyException {
protected RubySecurityError(Ruby runtime, RubyClass exceptionClass) {
super(runtime, exceptionClass);
}
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/exceptions/NoMemoryError.java
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@
*
* @see RubyNoMemoryError
*/
public class NoMemoryError extends StandardError {
public class NoMemoryError extends Exception {
public NoMemoryError(String message, RubyNoMemoryError exception) {
super(message, exception);
}
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/exceptions/SecurityError.java
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@
*
* @see RubySecurityError
*/
public class SecurityError extends StandardError {
public class SecurityError extends Exception {
public SecurityError(String message, RubySecurityError exception) {
super(message, exception);
}

0 comments on commit 96fc710

Please sign in to comment.