From 8899a6261b96a65f0b87d0ab7e32fa9958ea3188 Mon Sep 17 00:00:00 2001 From: "igor%mir2.org" Date: Sat, 14 Aug 2004 15:07:50 +0000 Subject: [PATCH] Changing Kit.initCause to take and return RuntimeException: this is how it is supposed to be used, that is wrap checkable exceptions into uncheckable RuntimeExceptions. --- js/rhino/src/org/mozilla/javascript/Kit.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/rhino/src/org/mozilla/javascript/Kit.java b/js/rhino/src/org/mozilla/javascript/Kit.java index 4531e0dcdd8f..7020df7665f0 100644 --- a/js/rhino/src/org/mozilla/javascript/Kit.java +++ b/js/rhino/src/org/mozilla/javascript/Kit.java @@ -112,7 +112,8 @@ public class Kit * ex.initCause(cause) or otherwise do nothing. * @return The ex argument. */ - public static Throwable initCause(Throwable ex, Throwable cause) + public static RuntimeException initCause(RuntimeException ex, + Throwable cause) { if (Throwable_initCause != null) { Object[] args = { cause };