这两个文件 groovy-all-2.2.1.jar
和 groovy-all-2.2.1-indy 之间实际上有什么区别。 jar
,在 GROOVY_HOME\embeddable
目录中可用?
到目前为止我还没有使用过 indy 文件,我很好奇它的用途。
谢谢!
最佳答案
indy
jar 是 groovy 的 Java 7 编译版本,支持新的 InvokeDynamic
字节码。
Since Groovy 2.0, we added support for the JVM invokedynamic instruction. This instruction is supported since Java 7 and is a new bytecode instruction in the JVM that allows easier implementation of dynamic languages. This instruction will also be used internally, by the JVM, for the upcoming lamdba support in Java 8.
This means that unlike APIs, AST transformations or syntactic sugar, this feature is not visible to the developer or the end user. It is a compilation and runtime feature only
关于groovy - groovy-all-*.jar 和 groovy-all-*-indy.jar 之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20269341/