Scala 3 ScriptEngine not supporting bindings or attributes
#14,262 opened on 2022年1月12日
Repository metrics
- Stars
- (6,247 stars)
- PR merge metrics
- (平均マージ 18d 14h) (30d で 133 merged PRs)
説明
This hello world example works fine in Scala 2: https://github.com/invesdwin/invesdwin-context/tree/master/invesdwin-context-parent/invesdwin-context-scala/src/test/java/de/invesdwin/context/scala/tests/hello Which internally uses this wrapper for the ScriptEngine: https://github.com/invesdwin/invesdwin-context/blob/master/invesdwin-context-parent/invesdwin-context-scala/src/main/java/de/invesdwin/context/scala/pool/WrappedScalaScriptEngine.java
But it seems to fail in Scala3 because its ScriptEngine does not use the bindings or context attributes: https://github.com/lampepfl/dotty/blob/8e1054e9fcc91cba8fc3910051377b4a019b9589/compiler/src/dotty/tools/repl/ScriptEngine.scala