1
5
2
4
3
1
4
10
5
9
6
6

cross-posted from: https://programming.dev/post/15638499

A list of major Java and JVM features since JDK 17 to 22,

New language features JEP-409: Sealed Classes (17) JEP-440: Record patterns (21) JEP-441: Pattern matching for switch (21) JEP 456: Unnamed Variables & Patterns (22)

API changes JEP-306: Restore Always-Strict Floating-Point Semantics(17) JEP-382: New macOS Rendering Pipeline(17) JEP-400: UTF-8 by Default (18) JDK-8301226 – Clamp method for java.lang.(Strict)Math (21) JEP-439: Generational ZGC JEP-444: Virtual threads (21) JEP-454: Foreign Function & Memory(FFM) API (22)

Security JEP-452: Key Encapsulation Mechanism API (21) JDK-8275252: keystore file Features JEP-408: Simple web server (18) JEP-423: Region pinning for G1 (22) JEP-458: multi-file source-code programs (22) JEP-423: Region pinning for G1 (22) JEP-458: multi-file source-code programs (22)

Documentation JEP-413: Javadoc code snippets (18)

Deprecations

Lookahead Scoped values + Structured concurrency Module import declarations

7
47
submitted 2 weeks ago* (last edited 2 weeks ago) by ylai@lemmy.ml to c/java@programming.dev
8
7
9
15
submitted 1 month ago* (last edited 1 month ago) by abbadon420@lemm.ee to c/java@programming.dev

I teach a course in java and springboot for beginners. I would like to walk my students through the code of a real world java or springboot application. Can anyone recommend a good example?

10
1
11
6
submitted 2 months ago by abbadon420@lemm.ee to c/java@programming.dev

https://lemm.ee/post/29785400

So I'm making a project in SpringBoot with Oauth security.

If I use Auth0 as my Authorization Server, I can register an application there and just say that I want user to be able to login with Google an Facebook. That's all it takes.

If I use Keycloak as my Authorization Server, I can also have users choose Google or Facebook as there prefered login, but in order to provide that, I have to register my app with Google and Facebook first.

So how come it's so easy with Auth0 and a little less easy with Keycloak? Is it a contract thing, does Auth0 have contracts with all these providers or something?

12
3
13
-5
14
1
submitted 2 months ago by mac@programming.dev to c/java@programming.dev
15
1
16
8
submitted 3 months ago by jokro@feddit.de to c/java@programming.dev
17
-7

In this blog post, we will explore how to detect and prevent these anti-patterns using pair programming, code reviews, and observability.

18
21
19
0

cross-posted from: https://programming.dev/post/11703178

In this article, we’ll examine cache misses and, in general, learn about the caching concept and how to implement it in Spring Boot.

20
23
JDK 22 released (openjdk.org)
21
33

“An issue introduced by macOS 14.4, which causes Java process to terminate unexpectedly, is affecting all Java versions from Java 8 to the early access builds of JDK 22. There is no workaround available, and since there is no easy way to revert a macOS update, affected users might be unable to return to a stable configuration unless they have a complete backup of their systems prior to the OS update.”

22
8
23
4
24
8
25
5
Async File IO (concurrencydeepdives.com)
view more: next ›

Java

1218 readers
14 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 1 year ago
MODERATORS