Dokter Herbal Indonesia

Main Menu

  • Home
  • Bali
  • Lombok
  • Java
  • Sumatra
  • Fund

Dokter Herbal Indonesia

Header Banner

Dokter Herbal Indonesia

  • Home
  • Bali
  • Lombok
  • Java
  • Sumatra
  • Fund
Java
Home›Java›Java 17 offers features for safe and concise code; Oracle changes JDK licenses and requests more frequent LTS versions • DEVCLASS

Java 17 offers features for safe and concise code; Oracle changes JDK licenses and requests more frequent LTS versions • DEVCLASS

By William Hughey
September 17, 2021
0
0

The Java 17 JDK 17 reference implementation as well as the GPL licensed OpenJDK versions were released this week. The first long-term support release in three years features 14 JEPs and aims not only to improve the language, but also the way it interacts with external functions and data.

To make the programming language a bit more intuitive to use, Java 17, for example, includes a preview of a pattern match function for expressions and switch statements. Until now, developers could only use switch for limited types and were limited to constants for their case labels, often making queries more complex to build (and read). Allowing models in labels and introducing new models should therefore help developers to formulate more concise code for such scenarios.

Writing concise code can also help with code security, as can three of the new built-in language features. When using Java 17, for example, users can restrict which classes are allowed to extend or implement specific classes by adding sealed classes. The update also improved deserialization filters by introducing filter factories to support context-specific scenarios, and the strong encapsulation of internal JDK components by forcing developers to use the –-add-opens Where –Add-exports command line options to open or export packages.

This standardization of any kind is not always straightforward, as evidenced by the incorporation of an incubation API to interact with code and data outside of the Java runtime. The API is a sort of amalgamation between the Foreign-Memory Access API and the Foreign Linker API which have – at least in part – been discussed and evaluated since 2019. This latest iteration is intended to correct some of the issues with its predecessors and provide a more stable and secure alternative to the native Java interface.

In order to speed up the Java code a bit, Java 16 sported a new API for expressing vector calculations. Java 17 comes with an updated version of the incubation feature which adds “methods for copying characters between short vectors and arrays of characters, and new vector comparison operators for unsigned comparisons with integral vectors ”, translates byte vectors to and from Boolean arrays, and includes“ intrinsic support for transcendental and trigonometric channel level operations on x64 ”.

Apart from that, the Java team provided a JDK port for macOS / AArch64 and new types of interfaces and implementations for pseudo-random number generators, which might be worth a look for those who subscribe to an approach. flow-based programming.

However, the latest version of the JDK not only brings new features, but also removes a few little-used elements, such as RMI activation and the experimental AOT and JIT compiler, in order to make the kit’s code base easier to maintain. . Future versions will also see the removal of the Security Manager as well as the Applet API, both obsolete with JDK 17.

Since Java is still mainly developed by Oracle, the company took advantage of the latest version to educate Java users about some changes. Teams who have found the time between LTS releases a bit long will be happy to learn that Oracle is currently planning to ship the next LTS releases on a 2-year cadence instead of sticking to their three-year cycle. This is primarily intended for programmers working in organizations with a strict LTS latest version only policy, as they can use the new features a little earlier than before.

Developers who have considered trying Oracle’s JDK are slightly encouraged to try an updated licensing system, which allows the kit to be used in both commercial and private environments. While the previously deployed OTN license meant a jump to OpenJDK or a Java SE subscription once production use was on the horizon, the new Oracle No-Fee Terms and Conditions (NTFC) license also allows this as well as the redistribution as long as no fees are involved. Oracle JDK releases and free updates should be provided “up to a full year after the next LTS release” to give users some overlap for upgrading.


Source link

Related posts:

  1. Minecraft Redditor Finds A Way To Make Snow Golems Dangerous
  2. phreatic explosion yesterday / VolcanoDiscovery
  3. 5.2 earthquake struck near Muncar, East Java, Indonesia / Volcano
  4. Copyright lawsuit of the century ends with Google victory over Oracle

Categories

  • Bali
  • Fund
  • Java
  • Lombok
  • Sumatra
  • Privacy Policy
  • Terms and Conditions