你好,游客 登录 注册 搜索
背景:
阅读新闻

Apache Groovy v2.4.7 发布下载

[日期:2016-06-11] 来源:Linux社区  作者:Linux [字体:大 中 小]

Apache Groovy v2.4.7 发布下载,Groovy 是一种动态语言。它和 Java 一样,也运行于 Java 虚拟机中。你可以认为 Groovy 扩展了 Java 语言。Groovy 对自己的定义就是:Groovy 是在 java 平台上的、 具有像 Python, Ruby 和 Smalltalk 语言特性的灵活动态语言, Groovy 保证了这些特性像 Java 语法一样被 Java 开发者使用。除了语言和 Java 相通外,Groovy 有时候又像一种脚本语言。执行 Groovy 脚本时,Groovy 会先将其编译成 Java 类字节码,然后通过 Jvm 来执行这个 Java 类。Groovy的主要特点:

  • 使JAVA程序员以几乎为0的学习曲线获得现代的编程特性
  • 为你的代码提供静态检查和静态编译能力以提供健壮性和高性能
  • 提供领域特定语言(Domain-Specific Languages)和其他紧凑的语法使你的代码变得容易阅读和维护
  • 使用强大的处理原生类型,面向对象和Ant DSL使编写shell和脚本变得容易
  • 在开发Web,GUI,数据库或控制台程序时通过减少框架的代码提高开发人员的生产力
  • 通过提供的单元测试和模拟开箱即用(out-of-the-box)来简化测试
  • 与所有现有的Java类和库无缝集成
  • 直接编译成JAVA字节码,所以你可以用在任何你用JAVA的地方

更新日志 

Bug修复

  • [GROOVY-6203] - GroovyScriptEngine does not take script base class into account
  • [GROOVY-7312] - Compiler generates invalid inner class constructor
  • [GROOVY-7530] - disjoint() does not work correctly if objects don't implement Comparable
  • [GROOVY-7580] - ExpandoMetaClass append method does not throw an exception as per docs
  • [GROOVY-7602] - Intersect returns an empty list when the contents of the compared Collections are Maps
  • [GROOVY-7620] - No error if abstract getter is not implemented but static field exists
  • [GROOVY-7723] - propertyMissing(String,Object) called for missing getter
  • [GROOVY-7728] - LAX parser: Commenting out key/val pairs doesn't work
  • [GROOVY-7751] - CallableStatement leak in Sql.call() method
  • [GROOVY-7758] - GroovyCastException when both @CompileStatic and @Newify are used
  • [GROOVY-7761] - Groovydoc incorrectly rejects dollar signs and mucks up some backslashes during @code tag replacement.
  • [GROOVY-7773] - Enum constructor with value throws "unexpected token" error
  • [GROOVY-7777] - groovysh cannot load script with shebang
  • [GROOVY-7781] - GPathResult: Cannot retrieve XML attribute with namespace
  • [GROOVY-7783] - Redundant computation in ObservableList
  • [GROOVY-7784] - TypeChecked/CompileStatic: IndexOutOfBoundsException
  • [GROOVY-7793] - Compiler compiles class with private abstract method
  • [GROOVY-7798] - Sql.query methods pass java.sql.ResultSet to the closure, instead of GroovyResultSet
  • [GROOVY-7804] - @CompileStatic/@TypeChecked unexpected NullpointerException compiler bug
  • [GROOVY-7806] - @interface has too-stringent requirement for newline
  • [GROOVY-7808] - XmlSlurper unprefixed attributes should not be in the default namespace
  • [GROOVY-7810] - XmlSluper default constructor documentation about namespace aware incorrect.
  • [GROOVY-7813] - Calling a non-static outer class method from a static class passes STC
  • [GROOVY-7816] - ObservableList addAll method property change event index off by one
  • [GROOVY-7820] - CachedMethod.compareToCachedMethod throws "Should never happen"
  • [GROOVY-7822] - Redundant computation in ObservableSet
  • [GROOVY-7826] - Infinite recursion in genericTypeAsString
  • [GROOVY-7832] - NullPointerException in GroovyConsole with an input method
  • [GROOVY-7833] - exception in phase 'conversion'
  • [GROOVY-7841] - Assert fails when accessing particular primitive values with @CompileStatic
  • [GROOVY-7846] - A trait that defines a static method that uses generic return types throws "BUG! Type is null"

文档

  • [GROOVY-7604] - traits docs diamond problem explanation

改进

  • [GROOVY-6950] - StringGroovyMethods improve performance
  • [GROOVY-7775] - JavadocAssertionTestBuilder should handle escapes needed for HTML within javadoc, e.g. @ for @ and {@code ...}

下载

Gradle 打包 Groovy 脚本成 jar与上传到maven repository http://www.linuxidc.com/Linux/2012-07/64178.htm

Groovy入门教程 http://www.linuxidc.com/Linux/2013-09/89776.htm

Groovy 2.3 trait语法介绍 http://www.linuxidc.com/Linux/2014-05/101035.htm

Groovy 的详细介绍:请点这里
Groovy 的下载地址:请点这里

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-06/132182.htm

linux
相关资讯       Groovy下载 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款