JVM 動態腳本語言,Groovy 2.4.2/2.3.11 發布

n7w77 9年前發布 | 7K 次閱讀 Groovy

JVM 動態腳本語言,Groovy 2.4.2/2.3.11 發布

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。

Groovy 2.4.2 發布,此版本現已提供下載:

更新內容如下:

Bug 修復

  • [GROOVY-3519] - Compilation error incorrectly thrown for covariant return types when original method is private

  • [GROOVY-7008] - JsonOutput / Groovy JSON Builder do not escape special characters in map keys

  • [GROOVY-7034] - groovydoc for package-info embeds doc within the <h2> tag -- creates malformed HTML

  • [GROOVY-7045] - commands return value false is ignored

  • [GROOVY-7047] - Static inner class crashes compiler when it references parent's this

  • [GROOVY-7182] - Static type error when using generic methods and Closures as parameters

  • [GROOVY-7191] - CompileStatic Will Not Allow Instance Method In Trait To Call Static Method

  • [GROOVY-7211] - @CompileStatic: A method which has default value parameter and generic return type will cause type checking error

  • [GROOVY-7242] - calling trait method inside closure causes compiler error when CompileStatic is used

  • [GROOVY-7281] - IOGroovyMethods.withStream should use the stream type as the ClosureParam, not simply InputStream

  • [GROOVY-7290] - Shell Does Not Accept Triple Double Quote

  • [GROOVY-7299] - Cannot create two lists of length 1000

  • [GROOVY-7308] - Change In MetaClass Behavior

  • [GROOVY-7309] - Incorrect args processing in GroovyShell.run(Reader, String, List)

  • [GROOVY-7310] - getGeneratedMethods is missing from the type checking DSL

  • [GROOVY-7322] - Problem With Static Trait Methods

  • [GROOVY-7324] - Incomplete generic type inference for list.property notation

  • [GROOVY-7327] - TypeChecking Error when combining generic method and Java Enum

  • [GROOVY-7332] - Groovysh help and doc commands should use groovy-lang.org instead of groovy.codehaus.org

  • [GROOVY-7333] - Incorrect inferred type in instanceof check of array

  • [GROOVY-7339] - DocGenerator doesn't understand generics placeholders

  • [GROOVY-7343] - Access to java.lang.Object is forbidden

  • [GROOVY-7344] - JsonSlurper parses badly formatted numbers.

改進

  • [GROOVY-4136] - gapi document generation ignores access modifiers set on groovydoc

  • [GROOVY-7257] - groovydoc's help option is misleading

  • [GROOVY-7317] - Add primitive array sum() and sum(initialValue)

  • [GROOVY-7326] - Add FileTreeBuilder

  • [GROOVY-7347] - Optimize initialization of char constants

  • [GROOVY-7348] - Primitive char comparisons are not optimized

  • [GROOVY-7349] - Optimize foreach style loops on arrays

同時還發布了 Groovy 2.3.11 版本,此版本是個維護版本,主要是 bug 修復:

  • [GROOVY-7045] - commands return value false is ignored

  • [GROOVY-7047] - Static inner class crashes compiler when it references parent's this

  • [GROOVY-7182] - Static type error when using generic methods and Closures as parameters

  • [GROOVY-7211] - @CompileStatic: A method which has default value parameter and generic return type will cause type checking error

  • [GROOVY-7308] - Change In MetaClass Behavior

  • [GROOVY-7310] - getGeneratedMethods is missing from the type checking DSL

  • [GROOVY-7324] - Incomplete generic type inference for list.property notation

  • [GROOVY-7332] - Groovysh help and doc commands should use groovy-lang.org instead of groovy.codehaus.org

  • [GROOVY-7333] - Incorrect inferred type in instanceof check of array

  • [GROOVY-7343] - Access to java.lang.Object is forbidden

現已提供下載:

來自:http://www.oschina.net/news/60702/groovy-2-4-2-and-2-3-11

 本文由用戶 n7w77 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!