diff options
author | Jesse Wilson <jessewilson@google.com> | 2009-10-15 17:30:27 -0700 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2009-10-16 11:06:13 -0700 |
commit | 1c422fc0ab0692e10a05af6f48c6276c4dad4bea (patch) | |
tree | 739b04335314dc19b95612ecbcf487b78ba4d04d /math | |
parent | 16547435e99ef7d6d09c8d52768b1a8639bf05d3 (diff) | |
download | libcore-1c422fc0ab0692e10a05af6f48c6276c4dad4bea.zip libcore-1c422fc0ab0692e10a05af6f48c6276c4dad4bea.tar.gz libcore-1c422fc0ab0692e10a05af6f48c6276c4dad4bea.tar.bz2 |
Respond to impossible CloneNotSupportedExceptions with AssertionErrors.
See bug 2183132.
Diffstat (limited to 'math')
-rw-r--r-- | math/src/test/java/tests/api/java/math/BigIntegerTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/math/src/test/java/tests/api/java/math/BigIntegerTest.java b/math/src/test/java/tests/api/java/math/BigIntegerTest.java index d04f742..b84aa17 100644 --- a/math/src/test/java/tests/api/java/math/BigIntegerTest.java +++ b/math/src/test/java/tests/api/java/math/BigIntegerTest.java @@ -1299,7 +1299,7 @@ public class BigIntegerTest extends junit.framework.TestCase { try { return super.clone(); } catch (CloneNotSupportedException e) { - return null; + throw new AssertionError(e); // android-changed } } } |