V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yazinnnn
V2EX  ›  Java

jdk18 ga

  •  
  •   yazinnnn · 2022-03-22 22:50:22 +08:00 · 2314 次点击
    这是一个创建于 737 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://mail.openjdk.java.net/pipermail/jdk-dev/2022-March/006458.html

    https://jdk.java.net/18

    Features

    400: UTF-8 by Default

    408: Simple Web Server

    413: Code Snippets in Java API Documentation

    416: Reimplement Core Reflection with Method Handles

    417: Vector API (Third Incubator)

    418: Internet-Address Resolution SPI

    419: Foreign Function & Memory API (Second Incubator)

    420: Pattern Matching for switch (Second Preview)

    421: Deprecate Finalization for Removal

    8 条回复    2022-03-23 21:34:45 +08:00
    Cbdy
        1
    Cbdy  
       2022-03-23 08:23:54 +08:00 via Android
    好!
    MakHoCheung
        2
    MakHoCheung  
       2022-03-23 09:12:57 +08:00
    期待 19
    huang119412
        3
    huang119412  
       2022-03-23 09:22:34 +08:00
    java 越来越好了
    aguesuka
        4
    aguesuka  
       2022-03-23 09:29:55 +08:00
    We expect that, in the future, general classes will be able to declare deconstruction patterns to specify how they can be matched against.
    未来可能会有解构
    cubecube
        5
    cubecube  
       2022-03-23 10:14:43 +08:00
    @aguesuka 说这个是因为他们要把 finalize 方法废弃掉了。。
    yazinnnn
        6
    yazinnnn  
    OP
       2022-03-23 11:29:05 +08:00
    @cubecube
    你说的大概不是一回事?

    jep 这个解构是类似于 rust 模式匹配中的解构(deconstruction),而不是析构函数(destructor)
    sorakylin
        7
    sorakylin  
       2022-03-23 13:09:43 +08:00
    公司反正不会变, 自个业余做项目的话,我已经上 Kotlin 了……
    INCerry
        8
    INCerry  
       2022-03-23 21:34:45 +08:00
    .Neter:??????
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2919 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:13 · PVG 19:13 · LAX 04:13 · JFK 07:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.