summaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorJesse Wilson <jessewilson@google.com>2009-10-15 17:30:27 -0700
committerJesse Wilson <jessewilson@google.com>2009-10-16 11:06:13 -0700
commit1c422fc0ab0692e10a05af6f48c6276c4dad4bea (patch)
tree739b04335314dc19b95612ecbcf487b78ba4d04d /math
parent16547435e99ef7d6d09c8d52768b1a8639bf05d3 (diff)
downloadlibcore-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.java2
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
}
}
}