红联Linux门户
Linux帮助

Apache Groovy 2.4.10,JVM动态脚本语言

发布时间:2017-03-20 09:17:40来源:红联作者:Sednol
Apache Groovy 2.4.10 了,Groovy 是一门基于 JVM 的敏捷开发语言,它结合了 Python、Ruby 和 Smalltalk 的许多强大的特性。

该版本是 2.4.x 分支系列的维护版本,强烈建议所有使用此分支上旧版本的用户升级到该版本。

此版本包括 12 个 bug 修复和改进:

ClassFormatError if a method has dots within its name

MissingPropertyException: No such property in finally block

Compiler NPE Related To AST Transformations And Traits

Private trait method called from within a closure has the wrong "this" context

Calling parents method from trait using Parent.super.method() fail depending on trait declaration order

Exception in "finally" not caught by outer "try"

Binary incompatibility problems between compiled code in Groovy 2.4.7 vs 2.4.9

Unsupported operator with CompileStatic causes BUG! () during compilation

ListenerList generated fireWhatever() method stops working

文档

Builder's DefaultStrategy has small doc error

Groovy Language Specification documentation has bad internal links to "type checking section"

改进

Include documentation in the SDKMAN install

Groovy 主要的特点包括:

是一个基于Java虚拟机的敏捷动态语言。

构建在强大的Java语言之上 并添加了从Python,Ruby和Smalltalk等语言中学到的诸多特征。

为Java开发者提供了现代最流行的编程语言特性,而且学习成本很低(几乎为零)。

支持DSL(Domain Specific Languages领域定义语言)和其它简洁的语法,让你的代码变得易于阅读和维护。

Goovy拥有处理原生类型,面向对象以及一个Ant DSL,使得创建Shell Scripts变的非常简单。

在开发Web,GUI,数据库或控制台程序时 通过减少框架性代码 大大提高了开发者的效率。

支持单元测试和模拟(对象),可以简化测试。

无缝集成 所有已经存在的 Java对象和类库。

直接编译成Java字节码,这样可以在任何使用Java的地方都可使用Groovy。

软件详情:https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123&version=12339743

下载地址:http://www.groovy-lang.org/download.html

来自:开源中国社区
文章评论

共有 0 条评论