Java and Kotlin news: JDK 28 drops primitive patterns

JDK 28 removes primitive patterns, Kotlin 2.5 warns about ignored results, and a Jackson CVE lets JSON build classes in Spring Boot 4.1 apps. Tested.
Java, Kotlin and Cybersecurity
Java, Kotlin and Cybersecurity

JDK 28 removes primitive patterns, Kotlin 2.5 warns about ignored results, and a Jackson CVE lets JSON build classes in Spring Boot 4.1 apps. Tested.

JDK 28 turns Integer and LocalDate into value classes, Kotlin 2.5 gets full value classes, and Spring's one-time token login lets locked users in.

These ten Java snippets look like code from a normal pull request, and each one hides a bug that breaks production. When I conducted Java interviews, code review tasks were the best way to start a real conversation. A candidateā¦

JDK 28 makes structured concurrency final and adds AOT code and a JSON API. Plus Kotlin's JDK 17 requirement, Grails 8 and a Spring Security DPoP trap.

What a Kotlin data class compiles to and where it breaks in Spring Boot 4: JPA entities, lost Jackson defaults and @NotBlank that never runs.

Hadolint is the Dockerfile linter most guides recommend, and it still waves through a latest tag hidden behind an ARG. I know Hadolint well. When I started my own Docker and Kubernetes linter for JetBrains IDEs, I read its ruleā¦