Apache Groovy 2.5.12 和 3.0.4 已釋出。
3.0.4 是 Groovy 3_0_X 分支的維護版本,官方建議所有使用此分支的使用者升級到最新版本。
此版本包含 45 個 bugfix 和改進,列舉部分如下:
改進
Bugfix
- [GROOVY-4554] - JavaStubGenerator 與 package-info.groovy 檔案不能良好相容
- [GROOVY-8774] - Stub 生成器不能處理 package-info
- [GROOVY-9398] - GroovyScriptEngine 無法重新編譯使用泛型引數(Generic Parameters)的類
- [GROOVY-9405] - Junit 5 IncompatibleClassChangeError
- [GROOVY-9432] - 當嘗試透過 Grapes 使用 Picocli 時出現 ClassNotFoundException 異常
- [GROOVY-9465] - GroovyDoc: class-header 沒有一直顯示
- [GROOVY-9501] - 在子類訪問內部類中的私有靜態欄位時,出現 MissingPropertyException 異常
- [GROOVY-9505] - java.lang.UnsupportedOperationException: 此特性要求在 JDK 14 上的 ASM8 在 Spock 測試中使用
- [GROOVY-9506] - Joint compilation 被損壞
詳情檢視釋出說明。
2.5.12 包含 10 個 bugfix 和改進:
Bugfix
- [GROOVY-8966] - 當處於 exclusive 狀態的 NumberRange 被 List.getAt(range) 使用時,會被轉換為 inclusive 狀態
- [GROOVY-9501] - 在子類訪問內部類中的私有靜態欄位時,出現 MissingPropertyException 異常
- [GROOVY-9506] - Joint compilation 被損壞
- [GROOVY-9517] - 從 Class Array 到 Class List,CompileStatic typeCasting runtime 會出錯
- [GROOVY-9518] - 呼叫建構函式時不能推匯出閉合引數型別
- [GROOVY-9519] - CLIBuilder: 選項 "type: Integer, defaultValue '0'" 如果應用了預設值,則會產生布爾值
- [GROOVY-9528] - CLIBuilder: 當提供未知選項時,出現"error: Missing required options"
依賴升級
- [GROOVY-9552] - Bump Ant versions to address: [CVE-2020-1945] Apache Ant insecure temporary file vulnerability
- [GROOVY-9553] - 升級 picocli 至 4.3.2
文件
詳情檢視釋出說明。
下載地址:https://groovy.apache.org/download.html