• Endmaker
    link
    fedilink
    English
    06 months ago

    Java is looking more and more cool.

    Too bad companies are still stuck on Java 8😔

    • @[email protected]
      link
      fedilink
      0
      edit-2
      6 months ago

      That’s bad. 8 hasn’t been getting the essential security updates since march 2022. Of course money can buy a lot, but it’s still a bad idea. Even the Dutch govern.e t has mostly made the transition and they are no known for their elasticity

      • key
        link
        fedilink
        English
        06 months ago

        8 hasn’t been getting the essential security updates since march 2022.

        That’s not really true despite what Oracle claims. Even without dropping money for Oracle’s 2030 support, there’s been 9 releases to OpenJDK 8 so far in 2024. Amazon has guaranteed OpenJDK 8 LTS through 2026 as “corretto” for justifying it to corporate compliance teams.

        Everyone really should upgrade but it’s going to be several years yet before it’s an actual security risk.

    • Toes♀
      link
      fedilink
      06 months ago

      Too bad companies are still stuck on Java 8😔

      It’s the only one that matters 🥲 Think of the shareholders.

    • Aatube
      link
      fedilink
      06 months ago

      which is why the world should just move to kotlin

  • Aatube
    link
    fedilink
    06 months ago

    Other features that were previewed in the Java Development Kit 22 release could also make it quite easily into the Java Development Kit 23 release. These include statements before super(…), which would give developers greater freedom in expressing constructor behavior – meaning string templates. This would make it easy to express strings that include values computed at run time – meaning scoped values. This would enable sharing of immutable data within and across threads; and implicitly declared classes and instance main methods.

    [proceeds to show a normal piece of code runnable below java 8]

    is this ai generated or do i have secree-slexia?

    • @[email protected]
      link
      fedilink
      06 months ago

      From the way I’m reading it, it sounds like a super() call in a constructor must be the first thing you do or something you don’t do? I never knew that was a thing… Looking at my old java code, I haven’t written Java since I graduated, this does seem to line up?