Skip to content
Tagged articles

Java 27

12 articles · Page 1 of 1
LuTiao Programming
LuTiao Programming
Nov 14, 2026 · Backend Development

Java 27 LazyConstant: Fix 6s Startup Delay Caused by Eager static final Initialization

The author traces a 6-second Java service startup delay to eager initialization of large objects via static final fields, demonstrates how Java 27's LazyConstant API enables thread-safe, one-time lazy initialization with constant semantics, and explains when to use it versus Spring @Lazy, caches, or double-checked locking.

JEP 531Java 27Kubernetes scaling
0 likes · 19 min read
Java 27 LazyConstant: Fix 6s Startup Delay Caused by Eager static final Initialization
LuTiao Programming
LuTiao Programming
Nov 13, 2026 · Backend Development

Java 27 Structured Concurrency: Replacing CompletableFuture for Parallel Homepage Aggregation

The article demonstrates migrating a homepage aggregation API from CompletableFuture to Java 27's StructuredTaskScope, showing how structured concurrency simplifies parallel downstream calls by automatically managing task lifecycle, cancellation on failure, scope-level timeouts, virtual threads, and observability—reducing exception handling code by half while making concurrency semantics match business intent.

Backend DevelopmentCompletableFutureException Handling
0 likes · 17 min read
Java 27 Structured Concurrency: Replacing CompletableFuture for Parallel Homepage Aggregation
21CTO
21CTO
Nov 13, 2026 · Backend Development

Java 27 Released: G1 Default GC, Post-Quantum TLS, Compact Object Headers & JFR Redaction

Java 27 introduces nine JEPs including making G1 the universal default garbage collector, adding post-quantum hybrid key exchange for TLS 1.3, enabling compact object headers by default, and redacting sensitive data in JFR recordings, plus performance gains in HashMap.putAll and AVX2 binary search.

G1 garbage collectorJFR redactionJava 27
0 likes · 15 min read
Java 27 Released: G1 Default GC, Post-Quantum TLS, Compact Object Headers & JFR Redaction
Java Tech Enthusiast
Java Tech Enthusiast
Oct 5, 2026 · Backend Development

Java 27 JFR Now Auto-Redacts Passwords: Why Your Diagnostic Files Were Leaking Secrets

Java 27 introduces JFR in-process data redaction (JEP 536) that automatically masks sensitive environment variables, system properties, and JVM arguments matching default glob patterns like *password*, *secret*, *token*, and *api*key*, with support for custom patterns via FlightRecorderOptions, though custom JFR events and child processes remain unprotected.

JEP 536JFRJVM
0 likes · 13 min read
Java 27 JFR Now Auto-Redacts Passwords: Why Your Diagnostic Files Were Leaking Secrets
SpringMeng
SpringMeng
Sep 21, 2026 · Backend Development

JDK 27 Released: G1 Default GC, Compact Object Heads, Post-Quantum TLS

JDK 27 introduces nine JEPs including G1 as universal default GC, 64-bit compact object headers cutting heap usage 25%, default post-quantum TLS 1.3 key exchange, plus preview features like lazy constants, primitive pattern matching, structured concurrency, and Vector API for AI acceleration.

G1 GCJDK 27Java 27
0 likes · 22 min read
JDK 27 Released: G1 Default GC, Compact Object Heads, Post-Quantum TLS
Tech Musings
Tech Musings
Sep 17, 2026 · Backend Development

Java 27 Compact Object Headers: Real HTTP Benchmark Shows 300 Bytes/Session Saved

This article benchmarks Java 27's default Compact Object Headers against Java 8 and Java 27 with the feature disabled, using identical bytecode. In a Spring Boot authentication service, COH reduces per-session heap by ~300 bytes (10% total heap), with total upgrade savings of ~21%. Benefits scale with active small object count, while hashCode and locking remain fully compatible.

Garbage CollectionHeap AnalysisJOL
0 likes · 25 min read
Java 27 Compact Object Headers: Real HTTP Benchmark Shows 300 Bytes/Session Saved
LuTiao Programming
LuTiao Programming
Sep 17, 2026 · Backend Development

Java 27 Finally Lets You Switch on long, double, boolean — With Range Guards

Java 27's preview feature extends switch expressions to all primitive types (long, float, double, boolean) and adds pattern matching with 'when' guards, enabling concise range-based business rules instead of if-else chains, though it remains a preview feature requiring explicit enablement.

Backend DevelopmentBusiness RulesJava 27
0 likes · 11 min read
Java 27 Finally Lets You Switch on long, double, boolean — With Range Guards
java1234
java1234
Sep 17, 2026 · Backend Development

Java 27 Released: G1 Default GC, Compact Object Headers, Post-Quantum TLS, JFR Redaction

Java 27 introduces four final features: G1 becomes the universal default garbage collector, compact object headers reduce memory overhead by 4 bytes per object, TLS 1.3 adds post-quantum hybrid key exchange by default, and JFR automatically redacts sensitive data like passwords and tokens before recording.

G1 GCJFR redactionJava 27
0 likes · 18 min read
Java 27 Released: G1 Default GC, Compact Object Headers, Post-Quantum TLS, JFR Redaction
LuTiao Programming
LuTiao Programming
Sep 15, 2026 · Backend Development

Java 27 JFR Auto-Redaction: Automatic Secret Masking in Diagnostic Files

Java 27 introduces JFR in-process data redaction (JEP 536) that automatically masks sensitive values like passwords, tokens, and API keys in environment variables, system properties, and JVM arguments within flight recordings, using default glob patterns and allowing custom rules via FlightRecorderOptions, though custom JFR events and child processes remain unprotected.

Data RedactionFlight RecorderJEP 536
0 likes · 12 min read
Java 27 JFR Auto-Redaction: Automatic Secret Masking in Diagnostic Files
LuTiao Programming
LuTiao Programming
Sep 14, 2026 · Backend Development

Java 27 Structured Concurrency: Simplifying Parallel Aggregation Beyond CompletableFuture

The author explores Java 27's Structured Concurrency (StructuredTaskScope) for parallel service aggregation, showing how it replaces CompletableFuture with clearer lifecycle, automatic cancellation on failure, scope-level timeouts, and virtual threads, while noting it remains a preview API requiring --enable-preview.

Backend DevelopmentCompletableFutureJava 27
0 likes · 15 min read
Java 27 Structured Concurrency: Simplifying Parallel Aggregation Beyond CompletableFuture