From 86704591e73fe9e1aeca064e129e0b0adf2203a4 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 3 Jan 2008 10:08:33 -0700 Subject: [PATCH] Throwable.initCause should return 'this' --- classpath/java/lang/Throwable.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classpath/java/lang/Throwable.java b/classpath/java/lang/Throwable.java index 921da24ea2..e656f16aab 100644 --- a/classpath/java/lang/Throwable.java +++ b/classpath/java/lang/Throwable.java @@ -31,9 +31,10 @@ public class Throwable { return cause; } - public void initCause(Throwable e) { + public Throwable initCause(Throwable e) { if (cause == null) { cause = e; + return this; } else { throw new IllegalStateException(); }