yazinnnn
V2EX  ›  Java

jdk18 ga

  •  
  •   yazinnnn · Mar 22, 2022 · 3414 views
    This topic created in 1688 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
    Cbdy
    Mar 23, 2022 via Android
    1
    好!
    MakHoCheung
    MakHoCheung
    Mar 23, 2022
    2
    期待 19
    huang119412
    huang119412
    Mar 23, 2022
    3
    java 越来越好了
    aguesuka
    aguesuka
    Mar 23, 2022
    4
    We expect that, in the future, general classes will be able to declare deconstruction patterns to specify how they can be matched against.
    未来可能会有解构
    cubecube
    cubecube
    Mar 23, 2022
    5
    @aguesuka 说这个是因为他们要把 finalize 方法废弃掉了。。
    yazinnnn
    yazinnnn
    OP
    Mar 23, 2022
    6
    @cubecube
    你说的大概不是一回事?

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