From 1e3355a61c543eed20212586b9147ab1856db513 Mon Sep 17 00:00:00 2001 From: Andreas Woess Date: Fri, 28 Aug 2020 15:03:24 +0200 Subject: [PATCH] wasm: replace sun.reflect.generics.reflectiveObjects.NotImplementedException with WasmExecutionException. --- .../src/org/graalvm/wasm/nodes/WasmBlockNode.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wasm/src/org.graalvm.wasm/src/org/graalvm/wasm/nodes/WasmBlockNode.java b/wasm/src/org.graalvm.wasm/src/org/graalvm/wasm/nodes/WasmBlockNode.java index f962b32d38e0..31f0f39248d1 100644 --- a/wasm/src/org.graalvm.wasm/src/org/graalvm/wasm/nodes/WasmBlockNode.java +++ b/wasm/src/org.graalvm.wasm/src/org/graalvm/wasm/nodes/WasmBlockNode.java @@ -244,8 +244,6 @@ import com.oracle.truffle.api.nodes.Node; import com.oracle.truffle.api.nodes.RepeatingNode; -import sun.reflect.generics.reflectiveObjects.NotImplementedException; - public final class WasmBlockNode extends WasmNode implements RepeatingNode { /** @@ -2344,7 +2342,7 @@ public int execute(WasmContext context, VirtualFrame frame) { break; } case F32_DEMOTE_F64: { - throw new NotImplementedException(); + throw WasmExecutionException.create(this, "not implemented: F32_DEMOTE_F64"); } case F64_CONVERT_I32_S: case F64_CONVERT_I32_U: { @@ -2367,7 +2365,7 @@ public int execute(WasmContext context, VirtualFrame frame) { break; } case F64_PROMOTE_F32: { - throw new NotImplementedException(); + throw WasmExecutionException.create(this, "not implemented: F64_PROMOTE_F32"); } case I32_REINTERPRET_F32: { // As we don't store type information for the frame slots (everything is stored