justeasy
V2EX  ›  Java

现在是升级 Java11 的时候吗?模块化具体有什么用?

  •  
  •   justeasy · Jul 13, 2019 · 3348 views
    This topic created in 2522 days ago, the information mentioned may be changed or developed.

    Java8 作为一门现代语言好像现在没那么“现代”了,看到 11 有性能提升、加了一点语法糖、加了一些便捷 Utils,对于写 Kotlin 的我当时就有点想换了。

    近还看到新版本的 JDK 对 Docker 的兼容做了很多改进,但是不知道 11 用的人多吗?

    之前看到过 Unsafe 的 API 换了,会导致和 Java8 的不兼容,Netty 好像就不支持 11 的 DirectBuffer,现在不兼容的库多吗?

    JAVA9 版本后的模块化到底是什么,我在 IDEA 试用了一下,感觉并没有那么好用,反而有些类的提示都没有,我还得手动改 info 文件添加模块,仅仅是精简打包体积吗?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5550 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:33 · PVG 09:33 · LAX 18:33 · JFK 21:33
    ♥ Do have faith in what you're doing.