--- a/jdk/test/java/math/BigDecimal/MultiplyTests.java Fri Jun 19 14:39:06 2009 -0700
+++ b/jdk/test/java/math/BigDecimal/MultiplyTests.java Sat Jun 20 13:34:06 2009 -0700
@@ -23,7 +23,7 @@
/*
* @test
- * @bug 1234567
+ * @bug 6850606
* @summary Test BigDecimal.multiply(BigDecimal)
* @author xlu
*/
@@ -72,6 +72,16 @@
}
}
}
+
+ BigDecimal x = BigDecimal.valueOf(8L, 1);
+ BigDecimal xPower = BigDecimal.valueOf(-1L);
+ try {
+ for (int i = 0; i < 100; i++) {
+ xPower = xPower.multiply(x);
+ }
+ } catch (Exception ex) {
+ failures++;
+ }
return failures;
}