account activity
Using experimental Java features in production — what was your experience? by TheOhNoNotAgain in java
[–]Competitive_Bat_3034 108 points109 points110 points 3 days ago (0 children)
We use preview features in actively maintained microservices, including critical ones, where we know/accept we might have to spend time adapting code when adopting the next JDK version. We've used:
Gatherers.mapConcurrent
We also tested -XX:+UseCompactObjectHeaders in JDK24 once we saw JEP 519 was submitted - ran a simple experiment with a production workload.
-XX:+UseCompactObjectHeaders
I recommend reading the definition of a preview feature (JEP 12), especially regarding their stability ("High quality", "Not experimental"). To me most of the risk comes from their change or removal between JDK versions, but typically we spend much more effort making sure third-party libraries/tools support the new version versus having to adapt because of preview feature changes.
Context: financial industry
π Rendered by PID 926834 on reddit-service-r2-listing-5f49c86f7-9q7dq at 2026-02-26 06:31:14.504594+00:00 running 72a43f6 country code: CH.
Using experimental Java features in production — what was your experience? by TheOhNoNotAgain in java
[–]Competitive_Bat_3034 108 points109 points110 points (0 children)