Java Weekly, Issue 672
Some simple Maven wins and an interesting piece on testing in the agentic era. The post Java Weekly, Issue 672 first appeared on Baeldung.
News stream
Some simple Maven wins and an interesting piece on testing in the agentic era. The post Java Weekly, Issue 672 first appeared on Baeldung.
Most of the time, the memory system sets the speed limit, not the arithmetic. Therefore, how you lay out data often matters more than how you write the loop that reads it. In Java, that choice shows up in a very ordinary question: do you keep an…
A mistake in Java code usually ends in an exception you can catch and read. A mistake in JNI code usually does not: a reference used after it expired, or on the wrong thread, takes down the entire JVM with a crash report, while a reference that is…
A RAG system is only as good as the query it sends to the search step. Real user questions are often wordy, vague, written in another language, or only make sense as a follow-up to an earlier message, and a vector store will match them poorly.…
Safeguarding LLM output means checking, and if necessary changing, what the model returns before it reaches the user or any downstream system. Typical jobs are redacting personal data or secrets, blocking content your product must never show, and…
Raft and Paxos make a quiet assumption. Their authors describe servers that fail by stopping. A server may crash, restart and rejoin, but it never says something false. In the Raft paper, safety holds under all non-Byzantine conditions, and that…
A Base64 bug that sat five months in a public issue, ninety Spring advisories in one day, and agents moving straight into the IDE.
A typical list screen shows five columns from two tables, takes three optional filters from the request, and pages through the results. This is ordinary read-side work in a Spring Boot application, and it’s surprisingly easy to do badly with JPA.…
My conference participation has dropped sharply since I left DevRel for a regular office engineering job. In 2023, I was proud to have had 70 talks; I’ll finish this year with 4, including one online and one quickie. It has one beneficial side…
TLDR An image can be small, distroless, signed, and scanned clean, but still harbor a security flaw. The size of the base image alone tells you nothing about its patching policy. What was secure today might be insecure tomorrow: scan and update…
A Java team can usually ship a backend without drama. The trouble starts when the app needs screens. Suddenly there is a JavaScript framework to pick, a REST layer to feed it and a second build to keep alive. This article skips all of that. We build…
On behalf of the team and everyone who has contributed, I'm happy to announce that Spring Boot 4.2.0 has been released and is now available from Maven Central. This release includes a number of improvements, new features and dependency upgrades.…
On behalf of the team and everyone who has contributed, I'm pleased to announce the availability of the 2026.0.3 and 2025.1.9 service releases. The releases include bug fixes, documentation improvements, and dependency upgrades. CVEs fixed in this…
On behalf of the team and all contributors, I am pleased to announce that Spring Shell 4.0.4 is now available from Maven Central! What's new in Spring Shell 4.0.4? This release comes with a number of bug fixes, documentation updates and dependency…
On behalf of the team and everyone who has contributed, I am pleased to announce that the Spring Vault 4.0.5 and 4.1.2 releases are available now. Both releases ship bug fixes, selected improvements, and dependency upgrades. CVEs fixed in this…
Hi, Spring fans! Come listen in on a conversation you won’t want to miss: a deep dive into JobRunner 9 with its creator, Ronald Dehuysser. If you care about distributed processing in the Java and Spring Boot ecosystem, this is your chance to hear…
On behalf of the team and all contributors, I am pleased to announce that Spring Batch 6.1 is available from Maven Central now! This release brings a number of new features, enhancements and bug fixes, as well as a few breaking changes, on top of…
On behalf of the team and everyone who has contributed, I'm happy to announce that Spring Boot 4.2.0 has been released and is now available from Maven Central. This release includes a number of improvements, new features and dependency upgrades.…
Learn about the System Properties Extension annotations introduced in JUnit 6.1, which work together to clear, set, and restore JVM system properties between unit test runs. The post A Guide to the System Properties Extension Annotations in JUnit…
In a previous article, we followed a single cache line as it bounced between CPU cores. That problem is called false sharing, and it showed how a few bytes can slow down a whole program. If you want a quick refresher, this guide to false sharing in…
1063 items available