Tagged articles

Java 27

5 articles · Page 1 of 1
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.

Java 27Pattern Matchingbackend development
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.

Compact Object HeadersG1 GCJFR Redaction
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 RedactionDiagnosticsFlight Recorder
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.

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