Fixed a refactor bug. git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@167 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/super/com/google/gwt/emul/java/lang/Throwable.java b/user/super/com/google/gwt/emul/java/lang/Throwable.java index 0461210..364c59d 100644 --- a/user/super/com/google/gwt/emul/java/lang/Throwable.java +++ b/user/super/com/google/gwt/emul/java/lang/Throwable.java
@@ -27,7 +27,6 @@ private static final StackTraceElement[] NO_STACK_TRACE = new StackTraceElement[0]; private Throwable cause; - private String message; public Throwable() { @@ -78,13 +77,13 @@ } public Throwable initCause(Throwable cause) { - if (cause != null) { + if (this.cause != null) { throw new IllegalStateException("Can't overwrite cause"); } if (cause == this) { throw new IllegalArgumentException("Self-causation not permitted"); } - cause = cause; + this.cause = cause; return this; } @@ -120,4 +119,5 @@ return className; } } + }