Groovy 2.4.3 发布,JVM 动态脚本语言

dw23 9年前

Groovy 2.4.3 发布,此版本更新内容如下:

Bug 修复

  • [GROOVY-6757] - Explicit type hints are not respected

  • [GROOVY-7307] - Narrower generic type not taken into account when calling another generic method

  • [GROOVY-7316] - CompileStatic cannot infer generic return type

  • [GROOVY-7355] - VerifyError if a closure shared variable of a foreach style loop is used with @CompileStatic

  • [GROOVY-7356] - Compiler internal error if inside an optimized foreach loop and the body contains a try/catch block

  • [GROOVY-7357] - Optimized foreach loops should perform a null check

  • [GROOVY-7358] - Optimized foreach loops should handle "continue" properly

  • [GROOVY-7359] - CompileStack#removeVar: tried to remove a temporary variable with index 2 in wrong order

  • [GROOVY-7361] - VerifyError when private variable is used in synchronized block

  • [GROOVY-7364] - Invalid type inference with a generic method / return type and optional parameter

改进

  • [GROOVY-6123] - Cannot use @CompileStatic with loop over Enumeration

  • [GROOVY-6240] - static type checker cannot infer type of for loop variable from map

此版本现已提供下载:

Groovy 2.4.3 发布,JVM 动态脚本语言

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。

来自:http://www.oschina.net/news/60826/groovy-2-4-3