Java News

JDK Mission Control 8.3 - Sip of Java

By Billy Korando on June 4, 2023

Let's explore what's new in JDK Mission Control 8.3.

Read More
Design Document on Nullability and Value Types

By Brian Goetz on June 2, 2023

As we've hinted at, we've made some progress refining the essential differences between primitive and reference types, which has enabled us to shed the `.val` / `.ref` distinction and lean more heavily on nullability. The following document outlines the observations that have enabled this current turn of direction and some of its consequences. This document is mostly to be interpreted in the context of the Valhalla journey, and so talks about where we were a few months ago and where we're heading now …'

Read More
New JFR `view` Command

By Erik Gahlin on May 31, 2023

JDK 21 comes with a new JFR view command that displays aggregated event data in the shell. The command can be used to view information about an application without the need to dump a recording file, or open up JDK Mission Control …

Read More
UseDynamicNumberOfCompilerThreads and Memory Footprint

By Poonam Parhar on May 30, 2023

UseDynamicNumberOfCompilerThreads is a JVM option that controls the dynamic number of compiler threads used by the Java HotSpot JVM’s Just-In-Time (JIT) compiler to compile Java bytecode into optimized machine code...

Read More
Objects Utility Class - Sip of Java

By Billy Korando on May 28, 2023

Let's explore how to take advantage of the Objects utility class.

Read More
Patterns: Exhaustiveness, Unconditionality, and Remainder

By Brian Goetz, Gavin Bierman on May 26, 2023

As the switch construct has been made steadily more expressive (first to support switch expressions, and later to support patterns in switch), it has become important to provide compile-time checking for whether a particular switch is exhaustive for its selector type. All switch expressions, and any switch statement that uses a pattern label, must be exhaustive, or a compilation error will occur …'

Read More
Script Java Easily in 21 and Beyond - Inside Java Newscast #49

By Nicolai Parlog on May 25, 2023

To give Java and programming beginners a better learning path, JEP 445 proposes to allow stand-alone main methods that are non-public, non-static, and don't have an args array, so the shortest possible Java program is just `void main()`. We're also looking at the JEP draft for Launch Multi-File Source-Code Programs what builds out the late section of the on-ramp by allowing the Java launcher to in-memory compile and launch multiple source files, even with dependencies.

Read More
JEP proposed to target JDK 21: 451: Prepare to Disallow the Dynamic Loading of Agents

By Ron Pressler on May 24, 2023

The following JEP is proposed to target JDK 21: 451: Prepare to Disallow the Dynamic Loading of Agents …

Read More
JavaDoc JDK 20 Updates - Sip of Java

By Billy Korando on May 22, 2023

Let's review the new JavaDoc preview page and other changes added in JDK 20!

Read More
JEP proposed to target JDK 21: 452: Key Encapsulation Mechanism API

By Weijun Wang on May 20, 2023

The following JEP is proposed to target JDK 21: 452: Key Encapsulation Mechanism API …

Read More


Sourced from https://inside.java via RSS.