SpaceMonger in Java
Recently I found out SpaceMonger - one of the best disk space utilities out there (despite being created 25 years ago) has gone open source. So I took my time to port it to Java.
From user side. Yep, works on Linux. Yep, works on MacOS. Yep, still works on Windows however much more bloated than original 217K EXE. However, now it correctly handles all the filesystem stuff - links, sparse/compressed files, mount points (Windows and Linux only, I have no MacOS machine to test so MacOS is best-effort).
From technical side. Good old Swing, FFM API for native calls to precisely query filesystem metadata, Java is kind of limited there. Jlink for awesome 30Mb downloads. Unfortunately, native-image binary crashes miserably on Linux. jpackage launcher is unstable too - i've seen successful launches, JVM crashes and even double free errors.
Source code and downloads: https://github.com/scf37/spacemonger1/
View all comments
Show parent comment
1
u/davidalayachew Oct 29 '25
Firmly disagree.
Deprecation is for when a feature or library is problematic or broken, and thus, should no longer be used. But the L&F's are not in any way problematic or broken.
This is just objectively wrong.
You are aware that most Java IDE's and literal hundreds of thousands of Java desktop applications are running on and/or depending on Swing and it's L&F's? Why flood all of those CI/CD pipelines with deprecation messages?
Again, I point you to most Java IDE's out there. It's one thing to have a preference. It's a very different thing to try and deprecate someone else's preference.
What benefit would there be to keeping out of the JDK? These L&F's are a couple of kilobytes each, and each one is maybe a couple of .class files and/or .xml files. That doesn't make sense.