-
Core Java
OpenJDK 21 Compiler Warning on Constructor Calling Overridable Methods
THe OpenJDK 21 beta 15 early access build (released 23 March 2023) adds an -Xlint warning to the Java compiler…
Read More » -
Core Java
More Frequent Java Long-Term Releases
A little over four years ago, Mark Reinhold (Chief Architect of the Java Platform Group at Oracle) stated in his…
Read More » -
Core Java
JDK 18: Code Snippets in Java API Documentation
OpenJDK 18 Early-Access Build 16 (2021/9/23) is now available and includes the implementation for JEP 413 (“Code Snippets in Java…
Read More » -
Core Java
Java’s Optional Does Not Supplant All Traditional if-null-else or if-not-null-else Checks
Java‘s addition of java.util.Optional has been welcome and had led to more fluent code for methods that cannot always return…
Read More » -
Core Java
The Case of the Missing JEPs
The JDK Enhancement-Proposal (JEP) process is “for collecting, reviewing, sorting, and recording the results of proposals for enhancements to the…
Read More » -
Core Java
Surprisingly High Cost of Java Variables with Capitalized Names
I’ve read hundreds of thousands or perhaps even millions of lines of Java code during my career as I’ve worked…
Read More » -
Core Java
Implementing equals(Object) with instanceof Pattern Matching
Pattern matching for the instanceof operator was introduced as a preview feature with JDK 14 and was finalized with JDK…
Read More » -
Core Java
Java NullPointerException Avoidance and Enhancement Tactics
An encountered NullPointerException can be a useful mechanism for highlighting when a certain code flow or certain data has led…
Read More » -
Core Java
JDK 17: Hexadecimal Formatting and Parsing
Build 3 of JDK 17 Early Access Builds includes the implementation for JDK-8251989 (“Hex formatting and parsing utility”). This newly…
Read More »