V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
yazinnnn
V2EX  ›  Java

jdk18 ga

  •  
  •   yazinnnn · Mar 22, 2022 · 3022 views
    This topic created in 1507 days ago, the information mentioned may be changed or developed.

    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 replies    2022-03-23 21:34:45 +08:00
    Cbdy
        1
    Cbdy  
       Mar 23, 2022 via Android
    好!
    MakHoCheung
        2
    MakHoCheung  
       Mar 23, 2022
    期待 19
    huang119412
        3
    huang119412  
       Mar 23, 2022
    java 越来越好了
    aguesuka
        4
    aguesuka  
       Mar 23, 2022
    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  
       Mar 23, 2022
    @aguesuka 说这个是因为他们要把 finalize 方法废弃掉了。。
    yazinnnn
        6
    yazinnnn  
    OP
       Mar 23, 2022
    @cubecube
    你说的大概不是一回事?

    jep 这个解构是类似于 rust 模式匹配中的解构(deconstruction),而不是析构函数(destructor)
    sorakylin
        7
    sorakylin  
       Mar 23, 2022
    公司反正不会变, 自个业余做项目的话,我已经上 Kotlin 了……
    INCerry
        8
    INCerry  
       Mar 23, 2022
    .Neter:??????
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5825 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 06:04 · PVG 14:04 · LAX 23:04 · JFK 02:04
    ♥ Do have faith in what you're doing.