Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions test/jdk/jdk/internal/vm/TestTranslatedException.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void encodeDecodeTest() throws Exception {
encodeDecode(throwable);

try {
VMSupport.decodeAndThrowThrowable(0, 0L, true);
VMSupport.decodeAndThrowThrowable(0, 0L, true, false);
throw new AssertionError("expected decodeAndThrowThrowable to throw an exception");
} catch (NullPointerException decoded) {
// Expected
Expand All @@ -69,7 +69,7 @@ public void encodeDecodeTest() throws Exception {
}

try {
VMSupport.decodeAndThrowThrowable(1, 0L, true);
VMSupport.decodeAndThrowThrowable(1, 0L, true, false);
throw new AssertionError("expected decodeAndThrowThrowable to throw an exception");
} catch (InternalError decoded) {
if (!decoded.getMessage().startsWith("native buffer could not be allocated")) {
Expand All @@ -80,7 +80,7 @@ public void encodeDecodeTest() throws Exception {
}

try {
VMSupport.decodeAndThrowThrowable(2, 0L, true);
VMSupport.decodeAndThrowThrowable(2, 0L, true, false);
throw new AssertionError("expected decodeAndThrowThrowable to throw an exception");
} catch (OutOfMemoryError decoded) {
// Expected
Expand All @@ -89,7 +89,7 @@ public void encodeDecodeTest() throws Exception {
}

try {
VMSupport.decodeAndThrowThrowable(3, 0L, true);
VMSupport.decodeAndThrowThrowable(3, 0L, true, false);
throw new AssertionError("expected decodeAndThrowThrowable to throw an exception");
} catch (InternalError decoded) {
// Expected
Expand All @@ -98,7 +98,7 @@ public void encodeDecodeTest() throws Exception {
}

try {
VMSupport.decodeAndThrowThrowable(4, 0L, true);
VMSupport.decodeAndThrowThrowable(4, 0L, true, false);
throw new AssertionError("expected decodeAndThrowThrowable to throw an exception");
} catch (InternalError decoded) {
// Expected
Expand All @@ -112,7 +112,7 @@ public void encodeDecodeTest() throws Exception {
try {
unsafe.putInt(buffer, problem.length);
unsafe.copyMemory(problem, Unsafe.ARRAY_BYTE_BASE_OFFSET, null, buffer + 4, problem.length);
VMSupport.decodeAndThrowThrowable(3, buffer, true);
VMSupport.decodeAndThrowThrowable(3, buffer, true, false);
throw new AssertionError("expected decodeAndThrowThrowable to throw an exception");
} catch (InternalError decoded) {
String msg = decoded.getMessage();
Expand All @@ -139,7 +139,7 @@ private void encodeDecode(Throwable throwable) throws Exception {
bufferSize = -res;
} else {
try {
VMSupport.decodeAndThrowThrowable(format, buffer, true);
VMSupport.decodeAndThrowThrowable(format, buffer, true, false);
throw new AssertionError("expected decodeAndThrowThrowable to throw an exception");
} catch (Throwable decoded) {
assertThrowableEquals(throwable, decoded);
Expand Down