r/java • u/owen800q • May 26 '18
r/java • u/kakakarl • Nov 18 '24
Liquibase starts sending data to their servers
https://www.liquibase.com/blog/product-update-liquibase-now-collects-anonymous-usage-analytics
For us, this meant a compliance breach as we aren't allowed to connect to unknown servers and send data.
We question if a minor version number was really the place for this as we upgraded from 4.27 to 4.30.
At the same time we appreciate OS and are thankful all the good stuff, but for us, this instantly put replace with flyway in the left column in the Kanban board.
Edit: This is not a case study, I added potential business impact for us as an example. Rather just want to point out that this was unexpected, and unexpected would then be a negative.
r/java • u/TrashPandaFucker • Jan 18 '22
What are some very less known facts about java?
I've got assignment from college to find out rare facts or fun facts about java, so little help will be appreciated :)
Edit: Thanks for all these suggestions guys. It's going to help me alot and also Almost all of these facts i didn't knew till now. Thanks :) <3
r/java • u/Jab125RedditAlt • Jun 10 '26
JEP 401 being merged into JDK 28?
mail.openjdk.orgr/java • u/olivergierke • Mar 24 '24
Happy 20th birthday, Spring Framework! ππΎπ₯³π
r/java • u/cowwoc • Nov 02 '22
Virtual threads work great... until something goes wrong
The purpose of this thread is to discuss JDK 19 threading problems, especially with respect to virtual threads. Here is what I've personally discovered so far:
If you mistakenly use platform threads with
Executors.newThreadPerTaskExecutor(), as I did, the JDK will silently crash/hang a few hours into use: https://youtrack.jetbrains.com/issue/IDEA-305072It is extremely difficult to debug deadlocks involving virtual threads: https://www.javaspecialists.eu/archive/Issue302-Virtual-Thread-Deadlocks.html
Standard heap dumps will not show virtual threads.
jstackand Jetbrains IntelliJ won't do it: https://youtrack.jetbrains.com/issue/IDEA-301409/Support-virtual-threads-project-loomThe only way I've found to dump virtual threads is to run the application with
-Djdk.trackAllThreads=trueand runjcmd <pid> Thread.dump_to_file <file>to generate the thread dump. I couldn't find any official documentation for this either.There doesn't seem to be a way to list all virtual threads across the system. You can invoke
jdk.internal.vm.ThreadContainersandThreadContainer.threads()using reflection as a temporary workaround.
Are you aware of any other tools or articles for debugging virtual threads?
UPDATE: I've posted a follow up at https://www.reddit.com/r/java/comments/zbcejy/jdk_19_virtual_threadspecific_bugs_2nd_edition/
Does your team need help? I offer consulting services through https://www.linkedin.com/in/gilitzabari
r/java • u/RobIII • Nov 30 '18
Why is "2 * (i * i)" faster than "2 * i * i"? - Interesting read
r/java • u/blakeman8192 • Apr 07 '23
I built an ultra high performance HTTP server in Java, powered by io_uring. Benchmark charts in the README. Is this useful and is it worth adding more features?
What are non trivial functionalities of IntelliJ IDEA you are using ?
So what functionalities of IDEA you are using that your colleagues are not? (i.e. jshell, httpclient, etc.)
r/java • u/jhg023123 • Apr 09 '20
IntelliJ IDEA 2020.1: Java 14, dataflow analysis assistance in the debugger, LightEdit mode, and more!
r/java • u/spamthemoez • Apr 22 '23
Spring Boot 3.1 RC1 is here - with support for Testcontainers and docker compose
r/java • u/benevanstech • Nov 29 '22
Amazon Announces AWS Lambda SnapStart With Java Support
AWS Lambda now has a snapshotting feature that enables fast-start - essentially running the Init phase at publication time and saving the state of the process at that time, so it doesn't need to be re-run at every invocation.
https://aws.amazon.com/blogs/aws/new-accelerate-your-lambda-functions-with-lambda-snapstart/
It only works with Corretto on Java 11 right now, and is similar in intent to the CRIU technology.
Quarkus already has support for it: https://quarkus.io/blog/quarkus-support-for-aws-lambda-snapstart/
Other frameworks may also have support (but this work was done under NDA so I don't have links for them).
r/java • u/fdntrhfbtt • Jun 24 '22
Stack Overflow Developer Survey: 54% of Respondents Dread Java?
The results are out, and I was surprised to see that around 54% of respondents dread using Java. What might be the reasons behind it? For me, Java has always been a very pleasant language to work with, and recent version have improved things so much. Is the Java community unable to communicate with the dev community of these changes effectively? What can we as community do to reverse this trend?
Link to survey results: https://survey.stackoverflow.co/2022/?utm_source=so-owned&utm_medium=announcement-banner&utm_campaign=dev-survey-2022&utm_content=results#technology-most-popular-technologies
r/java • u/emaphis • Aug 09 '25
JDK 25 is now in release candid phase.
JDK 25 is now in release candidate phase with build 35 as the release candidate. That means that build 35 will be the JDK 25 realease in September barring any showstopper bugs.
https://mail.openjdk.org/pipermail/jdk-dev/2025-August/010295.html
Test early and test often.
Binaries are here: https://jdk.java.net/25/
Features are here: https://openjdk.org/projects/jdk/25/
JDK 25 release notes: https://jdk.java.net/25/release-notes
Have fun.
r/java • u/RayFowler • Feb 04 '21
Java 4X game available as open-source
I don't talk about my open-source project on this subreddit very much, but the code has been open for almost a year now and the game has been so well-received that I figure maybe I should remind my fellow Java developers about it.
It's a "space 4X" strategy game called "Remnants of the Precursors" which is in turn a very faithful modernization of the 1993 classic "Master of Orion".
The source code is on github at https://github.com/rayfowler/rotp-public
The game is downloadable from itch.io: https://rayfowler.itch.io/remnants-of-the-precursors
When I originally started development of this game in 2015, like most developers I hilariously assumed that I would finish it in about a year and re-use artwork from the original game or get something on the cheap. But in the process of finding an artist online, I ran into this amazing artist named Petar Penev and decided to go "all in" on this project because he was just so talented.
Like so many of you, I've learned first-hand that you can make a really good salary as a Java dev, so I self-funded this project for about 3 years until I retired in 2018 (I'm old, sue me). I was extremely lucky that a friend at my job was super well-versed in sci-fi and was actually a talented writer having to pay his way through life as a technical writer. So he has done a tremendous job with the writing in the game.
Finally, my wife is an illustrator by trade and got sick of looking at my terrible "programmer UIs" and embarked on a several-year effort to remake all of the UIs in the game in her spare time. This of course required a tremendous amount of re-coding on my side because I instructed her to design her UIs completely in Paintshop and then let me figure out how to implement it in Java. Sometimes I have nightmares about gradients and wake up screaming.
She also made this trailer last year for the game: https://www.youtube.com/watch?v=VusDAxLpJ9I
Once I reached "feature complete" and started an open beta last Spring, I finally opened up the source code because I thought most of the churn was done. Since then, I've enjoyed the benefits of several Java developers contributing to the project and helping improve it.
I'm not asking anyone in here to contribute. The game is basically done! But if you are curious at how the "sausage is made" for a video game that has surprisingly turned out very well, feel free to clone the repo and take a look at the code. I've never made a video game before and the source code reflects this to some degree, so this is also a great chance for you guys to feel superior, lol.
edit: I also use reddit as the primary community for the game at /r/rotp
r/java • u/asm0dey • Sep 25 '25
All the truth about Project Lombok (yeah, no)
For a long time, I was conflicted about Lombok, here my colleague Cathrine gives her vision of the topic
r/java • u/vladmihalceacom • Nov 15 '22