groovy - groovy-all-*.jar 和 groovy-all-*-indy.jar 之间的区别

标签 groovy

这两个文件 groovy-all-2.2.1.jargroovy-all-2.2.1-indy 之间实际上有什么区别。 jar,在 GROOVY_HOME\embeddable 目录中可用?

到目前为止我还没有使用过 indy 文件,我很好奇它的用途。

谢谢!

最佳答案

indy jar 是 groovy 的 Java 7 编译版本,支持新的 InvokeDynamic 字节码。

来自Invoke Dynamic pages here :

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/

相关文章:

grails - 如何用Groovy闭包包装所有Grails服务方法?

Grails GORM : list all with nested property

java - 如何在geb中下载zip文件到当前目录?

date - UTC 的 Groovy 日期格式,以毫秒为单位

jenkins - 脚本化管道: wrap stage

grails - 我的 Controller 中无法访问域类

grails - 如何将 HTML 表格数据从 View 传递到 grails 中的 Controller ?

node.js - Groovy Script for Nodejs 插件无法在 Jenkins 上配置

arraylist - 包含重复项的两个列表之间的差异

jenkins - Jenkinsfile管道中的SparseCheckout