Skip to content
Snippets Groups Projects
Commit 7b12af68 authored by stepan's avatar stepan
Browse files

Supress deprecation warnings for export/importSymbol

parent 6a0c47a6
No related branches found
No related tags found
No related merge requests found
......@@ -364,6 +364,8 @@ public final class FastRSession implements RSession {
execInContext(context, c, (Class<?>) null);
}
// TODO: export/importSymbol
@SuppressWarnings("deprecation")
public static <E extends Exception> void execInContext(Context context, Callable<Object> c, Class<?>... acceptExceptions) {
context.eval(FastRSession.GET_CONTEXT); // ping creation of TruffleRLanguage
context.exportSymbol("testSymbol", (ProxyExecutable) (Value... args) -> {
......
......@@ -148,6 +148,8 @@ public class TestInterop extends TestBase {
private static final TestJavaObject[] testJavaObjects = new TestJavaObject[]{new TestJavaObject("testPOJO", new POJO()), new TestJavaObject("testIntArray", new int[]{1, -5, 199}),
new TestJavaObject("testStringArray", new String[]{"a", "", "foo"})};
// TODO: export/importSymbol
@SuppressWarnings("deprecation")
@Override
public void addPolyglotSymbols(org.graalvm.polyglot.Context context) {
for (TestJavaObject t : TestInterop.testJavaObjects) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment