From 3239815957c282b7a4e8233f6201ce8c527c4f5c Mon Sep 17 00:00:00 2001 From: Jaroslav Tulach Date: Tue, 27 Sep 2022 19:24:58 +0200 Subject: [PATCH] Registering SliceVectorMethodGen for reflection (#3737) Each builtin `makeFunction` method has to be currently registered for reflection. Adding registration of `SliceVectorMethodGen` to make following example work ag ```bash enso$ sbt engine-runner-native/buildNativeImage enso$ ./runner --run engine/runner-native/src/test/resources/Factorial.enso 6 ``` # Important Notes Regression caused by #3724 - Once the above code is executed in the CI, we'll discover such breakages before integration. --- .github/CODEOWNERS | 2 +- .../META-INF/native-image/org/enso/runner/reflect-config.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 327405107c7d..1a58edfad5c7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -29,7 +29,7 @@ Cargo.toml # This section should be removed once the engine moves to /app/engine /build.sbt @4e6 @jaroslavtulach @hubertp /distribution/ @4e6 -/engine/ @4e6 @jaroslavtulach +/engine/ @4e6 @jaroslavtulach @hubertp /project/ @4e6 @jaroslavtulach @hubertp /test/ @jdunkerley @radeusgd /tools/ @4e6 diff --git a/engine/runner-native/src/main/resources/META-INF/native-image/org/enso/runner/reflect-config.json b/engine/runner-native/src/main/resources/META-INF/native-image/org/enso/runner/reflect-config.json index b8fe0fb81011..84af4ce702ef 100644 --- a/engine/runner-native/src/main/resources/META-INF/native-image/org/enso/runner/reflect-config.json +++ b/engine/runner-native/src/main/resources/META-INF/native-image/org/enso/runner/reflect-config.json @@ -535,6 +535,10 @@ { "name":"org.enso.interpreter.node.expression.builtin.immutable.NewBuiltinVectorMethodGen", "methods":[{"name":"makeFunction","parameterTypes":["org.enso.interpreter.Language"] }]} +, + { + "name":"org.enso.interpreter.node.expression.builtin.immutable.SliceVectorMethodGen", + "methods":[{"name":"makeFunction","parameterTypes":["org.enso.interpreter.Language"] }]} , { "name":"org.enso.interpreter.node.expression.builtin.immutable.ToArrayVectorMethodGen",