Tech News
← Home  ·  All topics

Java 17

2 GoKawiil briefs on this topic

Java's sealed classes add compile-time exhaustiveness checks, new breaking-change risk

A technical explainer describes how sealed classes, introduced in Java 17, let developers restrict which subtypes can implement an interface or extend a class, enabling the compiler to verify that switch expressions handle every possible case without a default branch. The piece notes that forgetting a case triggers a compile-time error rather than a runtime failure, demonstrating this with a toy SealedType example using records.

Hyphanet ships build 1507, patches probe-privacy bug, drops Java 8 support

Hyphanet released build 1507 of its 0.7.5 line, cutting startup time, updating plugins and polishing Italian localization. The update also fixes a privacy flaw in probe requests, discovered by researchers Cynthia and Blub, by adding location randomization that had previously been missing. This is the final build to support Java 8, as future releases will require Java 17.