diff --git a/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/fastr/FastRInterop.java b/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/fastr/FastRInterop.java index a8eed4e5f40e0e72ac9e30bd66db9c56fb895dc7..eeef97bcb13706bf75d89bccb84b14cdba4bf08c 100644 --- a/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/fastr/FastRInterop.java +++ b/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/fastr/FastRInterop.java @@ -22,6 +22,8 @@ */ package com.oracle.truffle.r.nodes.builtin.fastr; +import java.io.IOException; + import com.oracle.truffle.api.CallTarget; import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary; import com.oracle.truffle.api.dsl.Specialization; @@ -51,14 +53,16 @@ public class FastRInterop { try { callTarget = RContext.getInstance().getEnv().parse(sourceObject); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { + emitIO(); + } catch (IOException e) { throw new RuntimeException(e); } return callTarget.call(); } + + private void emitIO() throws IOException { + } } @RBuiltin(name = ".fastr.interop.export", visibility = RVisibility.OFF, kind = RBuiltinKind.PRIMITIVE, parameterNames = {"name", "value"})