8282661: [BACKOUT] ByteBufferTest.java: replace endless recursion with RuntimeException in void ck(double x, double y)

Reviewed-by: chagedorn, psandoz
This commit is contained in:
Emanuel Peter 2022-03-04 16:26:14 +00:00 committed by Paul Sandoz
parent 52471539c0
commit 603050bfe0

View File

@ -216,10 +216,8 @@ class MyByteBuffer {
}
void ck(double x, double y) {
if (x != y) {
throw new RuntimeException(" x = " + Double.toString(x) + ", y = " + Double.toString(y)
+ " (x = " + Long.toHexString(Double.doubleToRawLongBits(x))
+ ", y = " + Long.toHexString(Double.doubleToRawLongBits(y)) + ")");
if (x == x && y == y && x != y) {
ck(x, y);
}
}