0

在将我的 java 项目从 Kotlin 1.2 迁移到 1.4 期间,我遇到了一个问题,即在 v 1.4 中没有 KotlinToJVMBytecodeCompiler.compileScript() 这样的方法

Class<?> script = requireNonNull(KotlinToJVMBytecodeCompiler.INSTANCE.compileScript(environment, getClass().getClassLoader()), () -> file + " compilation failed");

请建议我应该用什么替换它?

谢谢!

4

1 回答 1

1

我能够在 github 上找到此删除提交https://github.com/JetBrains/kotlin/commit/d863dc04e60ce82a162dbc4b5f1c9d379806177a#diff-36340d5f4473fd26b6fd3d39ac22b10560a53da22b65c763ba0b9e4d9864a

然后也许您可以看到将代码迁移到新版本需要做些什么,如果没有,那么可能会在 github 上提出一个问题,即该公共功能已被删除而没有任何信息如何迁移到新版本

于 2020-10-21T12:51:20.267 回答