test/java/math/BigDecimal/FloatDoubleValueTests.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2011 Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -21,11 +21,11 @@
* questions.
*/
/*
* @test
- * @bug 6274390
+ * @bug 6274390 7082971
* @summary Verify {float, double}Value methods work with condensed representation
* @run main FloatDoubleValueTests
* @run main/othervm -XX:+AggressiveOpts FloatDoubleValueTests
*/
import java.math.*;
@@ -77,10 +77,11 @@
// Test integral values that will convert exactly to both float
// and double.
static void testFloatDoubleValue() {
long longValues[] = {
+ Long.MIN_VALUE, // -2^63
0,
1,
2,
two2the24-1,