News for hackers. Stuff that matters.
Re:JDK 21 Release Notes by kaba0 on Tuesday September 19, 2023 @11:44AM (#37571611)
Come on, just stop this FUD already.

Oracle is responsible for 95+% of every single commit going to OpenJDK, which has the exact same license and situation as the goddamn linux kernel, GPL2. Do you also sweat a lot about accidentally installing red hat linux? If not, you have zero reason to worry.

How is amazon compiling and repackaging the exact same thing somehow different?

Re:JDK 21 Release Notes by gabereiser on Tuesday September 19, 2023 @11:46AM (#37571639)
People have been burned too many times by Oracle “true-ups”. And no, it’s not FUD. Their license explicitly states that JEE/SE (not JRE) is covered by their commercial license, not their open source license. This year, in 2023, Oracle introduced the enterprise-wide metric license model. So if you use Java for anything in your organization, they charge you based on your organization size. (All or nothing model).
Re:JDK 21 Release Notes by n2d4 on Tuesday September 19, 2023 @12:05PM (#37571980)
That licensing would be the Oracle JDK. Not OpenJDK like parent was talking about, which is wholly open-source (supporting SE but not EE) and also maintained by Oracle but without LTS.

See my other comment about Adoptium vs. OpenJDK vs. Oracle JDK: https://news.ycombinator.com/item?id=37571143

Re:JDK 21 Release Notes by gabereiser on Tuesday September 19, 2023 @12:33PM (#37572430)
Yes, Oracle JDK, the default one you are directed to at oracle.com. Java.net provides OpenJDK.
Re:JDK 21 Release Notes by kaba0 on Tuesday September 19, 2023 @12:09PM (#37572038)
There is no such thing as a JRE anymore. And even the commercial OracleJDK is free to use (though not libre).
Re:JDK 21 Release Notes by gabereiser on Tuesday September 19, 2023 @12:33PM (#37572415)
Some people would beg to differ. There are some organizations that have Java desktop apps, some that have kiosks and appliances that run JRE-like environments. There are some that are still on Java 8.
Re:JDK 21 Release Notes by cbm-vic-20 on Tuesday September 19, 2023 @12:47PM (#37572637)
This is what jlink is for.
Re:JDK 21 Release Notes by n2d4 on Tuesday September 19, 2023 @11:55AM (#37571810)
Oracle's OpenJDK builds are only updated for six months after each release, while Adoptium receives long-term support (like the commercial Oracle JDK).
Re:JDK 21 Release Notes by kaba0 on Tuesday September 19, 2023 @12:08PM (#37572012)
Even the commercial OracleJDK is free to use, as long as you stay on the latest LTS.
Re:JDK 21 Release Notes by pron on Tuesday September 19, 2023 @12:43PM (#37572573)
No one offers free long-term support. The free "long-term support" releases merely backport some fixes from the mainline to the old release, so only the intersection between the old version and the newest one is maintained in free distributions. A real LTS service includes original bug fixes. If you want the entire JDK to be maintained you have to either use the current version (completely free) or pay someone for a proper LTS service. The LTS service that Oracle offers is how OpenJDK is funded.
Re:JDK 21 Release Notes by nobleach on Tuesday September 19, 2023 @02:08PM (#37573825)
Can't upvote this response enough! Thank you Ron. You corrected my understanding on this a few years ago in a Reddit thread on /r/java. I've tried to convey this response ever since. You are NOT getting an LTS release from anyone outside of Oracle. Others will provide backports and that might be "good enough". If you're not paying for an LTS, you may as well update to each new release (as long as nothing else breaks).
Re:JDK 21 Release Notes by pron on Tuesday September 19, 2023 @02:10PM (#37573851)
To be fair, a few other companies also have good OpenJDK developers (although not as many as Oracle) and they also offer LTS services that cover the entire JDK, but no one offers one for free.
Re:JDK 21 Release Notes by nobleach on Tuesday September 19, 2023 @04:38PM (#37576183)
Yes! the "free" thing being the main difference. Thanks!
Re:JDK 21 Release Notes by frant-hartm on Tuesday September 19, 2023 @03:53PM (#37575548)
My understanding is:

Oracle publishes updates for latest release until the next release.

Then they drop maintenance of that branch, and RedHat picks it up (at least they did for 8, 11 and 17) and keep supporting/backporting fixes, with the help of other vendors and the community.

So when you are using 8/11/17 from RedHat/Adoptium/Corretto/you name it, you are actually using what RedHat provides to its customers as LTS, unless they have some private build, which I seriously doubt.

I wasn't able to find out what exactly Oracle does for their private LTS releases, do they use the public maintenance branch as a base of their private branch? Or do they continue their own private branch independently from what the community maintains? That would mean that the older the branch is (say jdk11u) the more differences there are between Oracle JDK and what you get from RedHat/Adoptium/...

On top of that Amazon provides support for Corretto on AWS, if you are using e.g. EC2 you get it as part of the fees, not exactly free, but cheap, considering you already pay for the VMs.

I appreciate any corrections/clarifications.

Re:JDK 21 Release Notes by pron on Tuesday September 19, 2023 @04:52PM (#37576398)
> Oracle publishes updates for latest release until the next release.

This is changing every now and again. For example, the Oracle JDK builds for JDK 21 will be offering free updates for three years (https://www.oracle.com/java/technologies/downloads/)

> and keep supporting/backporting fixes, with the help of other vendors and the community. So when you are using 8/11/17 from RedHat/Adoptium/Corretto/you name it, you are actually using what RedHat provides to its customers as LTS, unless they have some private build, which I seriously doubt.

This is where things get complicated, and given that there are all done by companies that fund their Java operations by selling support -- just as Oracle does -- clearly they don't offer their paid service for free. What you get for free is some backports from the mainline, i.e. only the intersection of the old and current JDK is maintained. Now, I believe that Red Hat specifically offers the same builds as they do to customers, that is not what you want if you really care about a fully maintained JDK. And that is for the following reason: If you're stuck on an old version, that probably means you're using some aspect of the JDK that's been removed or else you'd be using a new version. But the only things we remove are things that aren't widely used. This means that the fix you need is probably not the same as one some other customer who is stuck on the old version needs. If you're not a customer, your issue will not be fixed because no one offers original work on old releases for free.

Of course, if your software is heavily maintained, the safest, most secure, and cheapest option is to always use the current version rather than an old one. Once you get used to doing that, it's also the easiest.

Re:JDK 21 Release Notes by kaba0 on Tuesday September 19, 2023 @05:04PM (#37576617)
Due to the GPL, eventually all commits will find their way into the OpenJDK repos, it is sort of similar to how vulnerabilities are handled — with paid support, you will be the first to get updates. Also, since Oracle does most of the development on the main branch as is, they have deep understanding of those patches - while during backporting it may not be as expertly implemented.

But Oracle also backports commits to older JDKs, e.g. Java 8 is supported for 2030, though that is paid.

The main takeaway is that it is still a singular project where bugfixes definitely, but even most custom features find their way eventually back to mainline (e.g. it was the case that Microsoft made some specific feature for their usecase, that was later merged).

Re:JDK 21 Release Notes by palata on Tuesday September 19, 2023 @01:30PM (#37573293)
I get what you mean, but given answers here (and other places in this thread) it seems like the licensing is not clear at all.

At least it's not clear to me, I'm still on "Oracle is evil, go as far as you possibly can from them". I would genuinely be happy to be able to confidently say that "this particular project of Oracle is safe for me to use", though.

Re:JDK 21 Release Notes by kaba0 on Tuesday September 19, 2023 @01:48PM (#37573528)
It’s not clear for people that put their hands over their ears and go LA-LA-LA-LA. Hell, in many places bullshit like that is not even enforceable.

There was a good comment on one similar threads: oracle is thought as this litigious monster because they provide DRM-free, no phoning home solutions to companies. This is very important for these customers, as you just simply can’t shut down a country’s hospital system because Google or whatever managed to falsely flag it as some malware and now you try to grab onto any form of human contact from their support, without success.

But every sufficiently big company is only after money, so to make some form of profit they do have to actually enforce their contracts somehow, here comes the inspection - which sure suck, but there is no other way around it given the previous limitation. And sure, some higher management can easily have fked up and used some feature that was not part of their plan, and they desperately want to cover up their mishandling, and Oracle “kindly” offers them the option to forget about the fee for that plus option, if you subscribe to this other service of ours for X years, we are good; and higher management couldn’t be happier.

Re:JDK 21 Release Notes by palata on Tuesday September 19, 2023 @02:02PM (#37573736)
That kind of clarification is very useful (at least to me). I honestly don't really know why Oracle "are the bad guys". I just heard it so much that I accepted it.
Re:JDK 21 Release Notes by pseudosavant on Tuesday September 19, 2023 @02:05PM (#37573788)
There is cognitive overhead in even having to consider how Oracle could be licensing anything you download from them. Their licensing has a long history of being complex, expensive, and enforced. Choosing to get software from a less complicated (licensing wise) provider is a valid choice.

The licensing risk of using open source software, that is mostly being written by Oracle, from Amazon is less.

Amazon's open source reputation is that they'll screw over maintainers with their rebranded forks, but not go after users of open source.

Re:JDK 21 Release Notes by frant-hartm on Tuesday September 19, 2023 @03:11PM (#37574865)
According to

https://inside.java/2023/09/19/the-arrival-of-java-21/

Oracle provides roughly 3/4 of the commits and fixed issues. It's a majority, but there are other significant players (always surprised to see SAP higher then Google and Amazon).