Java proposal would streamline module package imports
Info World
by
6h ago
Java would be enhanced with the ability to succinctly import all packages exported by a module, under a proposal floating in the Java community. The plan would simplify the use of modular libraries in Java. The preview language feature for Java SE (Standard Edition), called Module Import Declarations, has been filed as a JDK Enhancement Proposal (JEP) in the OpenJDK community. Goals of the plan include simplifying the reuse of modular libraries by allowing entire modules to be imported at once, avoiding the noise of multiple type-import-on-demand declarations when using diverse parts of the AP ..read more
Visit website
Java services hit hardest by third-party vulnerabilities, report says
Info World
by
6h ago
Java services are the most-impacted by third-party vulnerabilities, according to the “State of DevSecOps 2024” report just released by cloud security provider Datadog. Released on April 17, the report found that 90% of Java services were susceptible to one or more critical or high-severity vulnerabilities introduced by a third-party library. The average for other languages was 47%. Datadog’s report analyzed tens of thousands of applications and container images and thousands of cloud environments to assess application security. Following Java in the vulnerabilities assessment were JavaScript ..read more
Visit website
Java G1 fix would speed JIT compilation
Info World
by
3d ago
A change to Java’s G1 garbage collector would lower the memory and processing overhead and speed the execution of Java’s C2 optimizing JIT (just-in-time) compiler, benefiting cloud deployments, under a proposal in the Java community. The OpenJDK proposal would simplify the implementation of G1’s barriers, which record information about application memory accesses, by shifting their expansion from early in the C2 JIT's compilation pipeline to later, the proposal states. Underlying this proposal is the increasing popularity of cloud-based Java deployments, which has led to a stronger focus on re ..read more
Visit website
JetBrains IDEs add AI-powered code autocompletion
Info World
by
2w ago
JetBrains has added full-line code autocompletion to its family of IDEs (integrated development environments), powered by locally run AI models. Full line code complеtion is available for Java, Kotlin, Python, JavaScript, TypeScript, CSS, PHP, Go, and Ruby with the 2024.1 versions of the respective IDEs. To read this article in full, please click here ..read more
Visit website
JDK 23: The new features in Java 23
Info World
by
3w ago
Java Development Kit (JDK) 23, the next planned version of standard Java, is off and running, with two features now scheduled for the release. Due September 19, JDK 23 has just added a second preview of a class-file API, providing a standard API for parsing, generating, and transforming Java class files. This feature was previously previewed in JDK 22, which was released on March 19. Previously slotted for JDK 23 was a preview of primitive types in patterns, instanceof, and switch. To read this article in full, please click here ..read more
Visit website
JetBrains IntelliJ IDE to add K2 compiler mode
Info World
by
3w ago
JetBrains’ IntelliJ IDEA 2024.1, a release of the integrated development environment (IDE) due on April 4, will feature an optional K2 compiler mode, enabling developers to use K2 for faster and more robust Kotlin code analysis, the company said. With this planned release, the IDE for Kotlin and Java will have two modes. The class mode, enabled by default, will use the standard K1 Kotlin compiler to analyze Kotlin code. The K2 mode will use the new K2 compiler as its code analysis engine. The K2 mode now is in an alpha state. The company made the announcement in a March 25 blog post. To read t ..read more
Visit website
JDK 22: An average Java release, sort of
Info World
by
3w ago
With atomic clock-like regularity, the latest version of Java, JDK 22, was released last week. Although this is not a long-term support (LTS) release, there is nothing to stop you from using it in production, and it contains some interesting new features. Let’s dive in and see what this brings us. New features for the Java platform are defined through JDK Enhancement Proposals (JEPs), and JDK 22 contains 12 of these. Coincidentally, over the last 13 Java releases, since the switch to a six-month cadence, the average number of JEPs (to the nearest integer) is also 12. You could, therefore, desc ..read more
Visit website
Oracle’s GraalVM backs Java 22
Info World
by
3w ago
Oracle has released GraalVM for JDK 22, an update to the Java runtime with ahead-of-time (AOT) compilation that brings support for Java 22 features. Released on the same day as Java 22, which was published March 19, GraalVM for JDK 22 can be downloaded from the project website. Most features of JDK 22 are available for Graal JIT compilation and Native Image AOT compilation. Java 22 features supported in both Graal JIT and Native Image include string templates, the class-file API, unnamed variables and patterns, structured concurrency, and scoped values. To read this article in full, please cli ..read more
Visit website
Java 22 brings security enhancements
Info World
by
1M ago
Java Development Kit (JDK) 22, released by Oracle March 19 as the latest version of standard Java, offers a number of security enhancements, covering areas ranging from an asymmetric key interface to a new security option for -XshowSettings that allows developers to easily display security-related settings. In a March 20 blog post on Oracle’s inside.java web page, Sean Mullan, technical lead of the Java Security libraries team and lead of the OpenJDK Security Group, detailed the security enhancements in JDK 22. To read this article in full, please click here ..read more
Visit website
Getting cozy with Java's new, softer side
Info World
by
1M ago
Java has made some big shifts over the past few years, as seemingly disparate forces converged to make the platform easier to use. New features like auto-compile and the var keyword lower the bar for using Java, for beginners and veterans alike. Let's take a look at what's cooking in this new, friendlier Java. var Perhaps the most astounding thing about modern Java, at least for long-timers, is the presence of var support. One of Java’s defining characteristics is that it is strongly typed, but var loosens that a bit. Within a method, you can now define a reference using va ..read more
Visit website

Follow Info World on FeedSpot

Continue with Google
Continue with Apple
OR