Java近期新聞:微軟加入JCP、Helidon發佈2_4_0、OpenJDK及JDK 18更新

{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"2021年11月1日起始周Java新聞更新:OpenJDK JEP、JDK 18、Helidon 2.4.0、Open Liberty 21.0.0.12-beta、Spring Cloud及其子項目的單點版本、Quarkus 2.4.1.Final、Hibernate Reactive 1.0.1、WildFly 25.0.1和JReleaser 0.8.0。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"OpenJDK"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/openjdk.java.net\/jeps\/418","title":null,"type":null},"content":[{"type":"text","text":"JEP 418"}]},{"type":"text","text":"(即網絡地址解析SPI)從Candidate進入Proposed to Target階段。該JEP是關於爲主機名和主機地址解析提供SPI接口,這樣java.net.InetAddress就可以使用外部的解析器,而不只依賴於OpenJDK內置的解析器。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/openjdk.java.net\/jeps\/421","title":null,"type":null},"content":[{"type":"text","text":"JEP 421"}]},{"type":"text","text":"(棄用finalize,爲移除該特性做準備)從Draft階段進入到Candidate階段。這個JEP主要是關於棄用在JDK 1.0中引入的finalize機制,爲在未來的版本中移除該特性做好準備。finalize的設計初衷是爲了避免資源泄露,但也帶來了一些嚴重的問題,比如不可預測的延遲、不可控的行爲和線程問題,而且默認情況下該功能都處於啓用狀態。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"JDK 18"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"JDK 18嚐鮮構建版本"},{"type":"link","attrs":{"href":"https:\/\/github.com\/openjdk\/jdk\/releases\/tag\/jdk-18%2B22","title":null,"type":null},"content":[{"type":"text","text":"Build 22"}]},{"type":"text","text":"可用,相比Build 20,這次的主要更新包括對各種問題的修復。更多細節可參看版本"},{"type":"link","attrs":{"href":"https:\/\/jdk.java.net\/18\/release-notes","title":null,"type":null},"content":[{"type":"text","text":"公告"}]},{"type":"text","text":"。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"JDK 18目前的特性集合如下:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"JEP 400:"},{"type":"link","attrs":{"href":"https:\/\/openjdk.java.net\/jeps\/400","title":null,"type":null},"content":[{"type":"text","text":"默認字符集爲UTF-8"}]},{"type":"text","text":";"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"JEP 408:"},{"type":"link","attrs":{"href":"https:\/\/openjdk.java.net\/jeps\/408","title":null,"type":null},"content":[{"type":"text","text":"Simple Web Server"}]},{"type":"text","text":";"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"JEP 413:"},{"type":"link","attrs":{"href":"https:\/\/openjdk.java.net\/jeps\/413","title":null,"type":null},"content":[{"type":"text","text":"Java API文檔中加入了代碼片段"}]},{"type":"text","text":";"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"JEP 416:"},{"type":"link","attrs":{"href":"https:\/\/openjdk.java.net\/jeps\/416","title":null,"type":null},"content":[{"type":"text","text":"通過方法句柄重新實現代碼反射"}]},{"type":"text","text":";"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"JEP 417:"},{"type":"link","attrs":{"href":"https:\/\/openjdk.java.net\/jeps\/417","title":null,"type":null},"content":[{"type":"text","text":"Vector API(第三個孵化器)"}]},{"type":"text","text":";"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"JEP 418:"},{"type":"link","attrs":{"href":"https:\/\/openjdk.java.net\/jeps\/418","title":null,"type":null},"content":[{"type":"text","text":"網路地址解析SPI"}]},{"type":"text","text":"(Proposed to Target階段)。"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"開發者可以通過"},{"type":"link","attrs":{"href":"https:\/\/bugreport.java.com\/bugreport\/","title":null,"type":null},"content":[{"type":"text","text":"Java Bug Database"}]},{"type":"text","text":"提交bug。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"微軟加入JCP"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"爲了持續兌現參與Java這門編程語言貢獻的承若,微軟宣佈簽署了"},{"type":"link","attrs":{"href":"https:\/\/jcp.org\/aboutJava\/communityprocess\/JSPA2.pdf","title":null,"type":null},"content":[{"type":"text","text":"Java規範參與協議"}]},{"type":"text","text":"(JSPA),加入了JCP(Java社區進程)。JCP項目主席Heather VanCura表示:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"我們非常歡迎微軟加入JCP,這充分體現了Java生態系統的活力。我們期待微軟帶來的貢獻。"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"此前,微軟作爲Adoptium工作組的創始成員之一,推出了OpenJDK的微軟構建版(OpenJDK的下游發行版),對Java社區做出了重大貢獻。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"Helidon"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Oracle發佈Helidon 2.4.0,特性包括:支持JDK 17、MicroProfile長時間運行動作和配置規範;集成MicroStream 6.0;支持在原生鏡像中使用Oracle Universal Connection Pool;JEP 290(對輸入流進行串行過濾);其他增強。更多細節可以在"},{"type":"link","attrs":{"href":"https:\/\/github.com\/oracle\/helidon\/releases\/tag\/2.4.0","title":null,"type":null},"content":[{"type":"text","text":"版本公告"}]},{"type":"text","text":"中找到。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"Open Liberty"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"IBM發佈Open Liberty 21.0.0.12-beta,支持即將發佈的MicroProfile 5.0中的某些特性。beta版升級了MicroProfile規範。Jakarta EE 9 Beta版是一個輕量級版本,只包含與Jakarta EE 9相關的特性。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"Spring框架"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"經過繁忙的兩週,Spring團隊發佈了Spring Cloud及相關子項目的單點版本。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Spring Cloud 2021.0.0的第一個候選版本(代號Jubilee)升級了子項目(如 Spring Cloud Sleuth、Spring Cloud Gateway、Spring Cloud Kubernetes)的依賴項以及修復了一些問題。Spring Cloud 21.0.0-RC1與Spring Boot 2.6.0-RC1兼容。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Spring Cloud Gateway發佈2.2.10.RELEASE和3.0.5版本,修復漏洞CVE-2021-22051(可對下游服務發出額外請求)。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Spring Cloud Data Flow發佈2.9.1和2.8.4版本,分別對2.9.0和2.8.3進行了問題修復和更新。更多細節可以在2.9.1和2.8.4的版本公告中找到。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"Quarkus"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Red Hat發佈Quarkus 2.4.1.Final,這是一個維護版本,包含了一些問題修復、文檔方面的改進以及升級了依賴項,如將Hibernate ORM升級到了5.6.1,將Hibernate Reactive升級到了1.0.1.Final,將SmallRye Health升級到了3.1.2,將SmallRye GraphQL升級到了1.3.5。更多細節可以在"},{"type":"link","attrs":{"href":"https:\/\/github.com\/quarkusio\/quarkus\/releases\/tag\/2.4.1.Final","title":null,"type":null},"content":[{"type":"text","text":"變更日誌"}]},{"type":"text","text":"裏找到。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"Hibernate"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在Hibernate Reactive 1.0的GA版本發佈不到一週,就發佈了第一個維護版本1.0.1.Final,該版本做了一些性能改進。更多細節可以在"},{"type":"link","attrs":{"href":"https:\/\/github.com\/hibernate\/hibernate-reactive\/milestone\/14?closed=1","title":null,"type":null},"content":[{"type":"text","text":"問題清單"}]},{"type":"text","text":"中找到。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"WildFly"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Red Hat發佈了一個WildFly 25的維護版本25.0.1,將依賴項Jandex升級到2.4.1,將Elytron Web升級到1.10.0.Final。更多細節可以在"},{"type":"link","attrs":{"href":"https:\/\/issues.redhat.com\/secure\/ReleaseNote.jspa?projectId=12313721&version=12375434","title":null,"type":null},"content":[{"type":"text","text":"問題清單"}]},{"type":"text","text":"中找到。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"JReleaser"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"JReleaser發佈了0.8.0版本,支持國際化,支持將發佈包上傳到AWS S3,提供了一個新的可以打包zip\/tar發行包的打包器。更多細節可以在"},{"type":"link","attrs":{"href":"https:\/\/github.com\/jreleaser\/jreleaser\/releases\/tag\/v0.8.0","title":null,"type":null},"content":[{"type":"text","text":"變更日誌"}]},{"type":"text","text":"中找到。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong"}],"text":"原文鏈接"},{"type":"text","text":":"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/www.infoq.com\/news\/2021\/11\/java-news-roundup-nov01-2021","title":null,"type":null},"content":[{"type":"text","text":"Java News Roundup: Microsoft Joins JCP, Helidon 2.4.0, OpenJDK and JDK 18 Updates"}]}]}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章