Apache Groovy 2.5.0-rc-2 已发布。此版本包含 16 处错误修复/改进:
Bug
[GROOVY-6523] - Improve Documentation for in DefaultGroovyMethods.intersect(..)
[GROOVY-7202] - Unable to resolve nested enum of parent class when compiling against binary parent
[GROOVY-8211] - ArrayIndexOutOfBoundsException at compilation when accessing a generic type with the wrong number of type parameters
[GROOVY-8531] - Fail to resolve type defined in super class written in Java
[GROOVY-8537] - GroovyCollections.combinations(Iterable) exhibits incorrect (asymmetric) behavior
[GROOVY-8541] - Incorrect packaging in groovy-all pom
[GROOVY-8545] - DGM#intersect(Set, Iterable) throws ClassCastException if Iterable larger than Set
新特性
[GROOVY-8558] - Add DGM `getLocation` to get the url of the jar containing the specified class
[GROOVY-8559] - CLONE - Add @Repeatable java8 annotation support
改进
[GROOVY-4585] - backslash can not be escaped by `SimpleTemplateEngine`
[GROOVY-8472] - Final variable analysis doesn't account for early exit for try/catch/finally
[GROOVY-8490] - Extend @Newify to support a class name pattern parameter
[GROOVY-8520] - Replace commons-cli with picocli in CliBuilder
[GROOVY-8521] - Create new groovy-cli-commons module
[GROOVY-8548] - DGM#intersect should provide a variant with a comparator
依赖升级
[GROOVY-8533] - Bump jansi to 1.17
[GROOVY-8534] - Bump jline to 2.14.6
下载地址:http://www.groovy-lang.org/download.html
Groovy 是一门基于 JVM 的敏捷开发语言,它结合了 Python、Ruby 和 Smalltalk 的许多强大的特性。
Groovy 主要的特点包括:
是一个基于Java 虚拟机的敏捷动态语言。
构建在强大的 Java 语言之上 并添加了从 Python、Ruby 和 Smalltalk 等语言中学到的诸多特征。
为 Java 开发者提供了现代最流行的编程语言特性,而且学习成本很低(几乎为零)。
支持 DSL(Domain Specific Languages 领域定义语言)和其它简洁的语法,让你的代码变得易于阅读和维护。
Goovy 拥有处理原生类型,面向对象以及一个 Ant DSL ,使得创建 Shell Scripts 变的非常简单。
在开发 Web,GUI,数据库或控制台程序时 通过减少框架性代码 大大提高了开发者的效率。
支持单元测试和模拟(对象),可以简化测试。
无缝集成 所有已经存在的 Java 对象和类库。
直接编译成 Java 字节码,这样可以在任何使用 Java 的地方使用 Groovy 。