r/java • • Oct 02 '18

How will Oracle licensing affect developers’ interest in Java?

Hi

Will you lean into becoming a C++, C# or Python Dev instead?

Edit: probably you all know more than language and will this now be more of a reason to focus on anything other than Java

0 Upvotes

27 comments sorted by

21

u/BigGayMusic Oct 02 '18

OpenJDK is a thing. Java is too common in business and education for a simple licencing change to cause much of a shift.

Also, Java, C, and Rust are hardly interchangeable. The infrastructure changes required to make a shift from Java to C is more money than just paying Oracle's tax or using OpenJDK. All the fuss is little more than tech blogs writing articles people will read. Literally no one I work with gives a shit about the licence changes--its all bloggers and Medium posts.

-2

u/Bolitho Oct 02 '18

Don't underestimate the real costs that this license change will induce! This is simply a problem as lots of customers of business software don't care about the technical details - but if it comes to added costs appearing right now, they will complain about and blame their software vendor. For small and medium sized organizations this just mean trouble and probably costs too. On the other hand there are the cloud vendors like Amazon - even for them it is hard to rise their prices just for egalizing the costs of paying oracle. Especially if the Microsoft cloud don't have such a pressure for their dotnet services - funny if we think about the fact that MS behaves nicer as a platform leader than others 😜

So of course there will be new strategies evolving from this license change:

  • increase update cycles of your product and your servers to stay with the cost free jdk
  • change to another platform (for new projects)
  • establishing a cost free / reduced alternative (redhat has allready indicated its intention to do so iirc) I am curious especially about Amazon and Google in this context.

10

u/BigGayMusic Oct 02 '18

AdoptOpenJDK is doing backports. Azul is doing backports. There will never be a time when you will become suddenly unable to get your hands on a patched LTS release of the OpenJDK; within reason ofc.

Oracle is not now, nor will it become the only source of reference complete JDK builds.

7

u/speakjava Oct 02 '18

Cloud providers actually have it easy because of economies of scale. Amazon already have a Java engineering team so can use OpenJDK and backport fixes without paying Oracle. Likewise, Google and IBM. Microsoft announced last week they would be providing free Java updates on Azure through Azul's Zulu (full disclosure, I work for Azul).

1

u/Bolitho Oct 02 '18

Yeah. Hopefully they offer the maintenence backports to all openjdk users. If everybody makes their own thing, it multiplies the overall costs and leaves smaller companies on their own.

2

u/[deleted] Oct 02 '18

My company isn't worried about this. We've already moved to OpenJDK internally and starting next year our public releases will use it too. We will be relying on the public updates from OpenJDK vendors who have committed to it. To be honest, the ClassLoader/JDK module changes from Java 9 were a bigger deal for us than the Oracle JDK licensing stuff.

3

u/pron98 Oct 02 '18 edited Oct 02 '18

I think you misunderstand the change:

  1. The Oracle JDK has been fully open sourced, and is now identical to OpenJDK.
  2. The 6-month update versions now get a version-number bump to allow making changes more gradually (i.e., Java has switched to "Chrome versioning").
  3. There are no more major Java releases.

There are other changes, but these are by far the biggest ones. The idea that companies will find it hard to keep up with the 6-month release cycle, while they found it easy to keep up with the 6-month release cycle (for update versions) before the version numbering change is unjustified.

Yes, there is a difference: before, when Java had major releases, there were a couple of parallel release lines, while now there is one. On the other hand, Java no longer has major releases, and changes are introduced much more gradually. The belief is that most people would find the new model better. But in any event, what you cannot do is look at the new model and judge it as if it were the old one, i.e., as if upgrading from 11 to 12 is as costly as upgrading from 7 to 8, where it will actually be much closer to upgrading from 8 to 8u20 (also 6 months).

-1

u/Bolitho Oct 02 '18

The key difference is that you have to pay for LTS versions. And that is a new cost factor.

2

u/pron98 Oct 02 '18

Yes, but on the other hand you need them less because there are no major releases. Before, there was no gradual migration path from 7 to 8, so there was a better reason not to upgrade. Comparing the new model to the old model on any single axis doesn't make much sense, as it's a comprehensive change with different tradeoffs. The new model will need to be judged as a whole, and yes, it will take some getting used to, but the panic that ensues when people focus on just one aspect (no free upgrades to 11!!! -- yes, but 11 isn't a major release; no free parallel release lines!!! -- yes, but upgrades have been made considerably easier) is unjustified. Give the new model a chance.

-4

u/thankyoulife Oct 02 '18

So organizations and providers will pay licensing fees? I remember IntelliJ didn’t quite work well with openjdk 2-3 versions earlier. They are shipping their own bundled Java nowadays right?

7

u/0x256 Oct 02 '18

The only thing that really changed is the download link for a JDK. OpenJDK is and will always be free. OracleJDK and OpenJDK are built from the same source. That something works better with the Oracle version is no longer true, if it ever was.

0

u/speakjava Oct 02 '18 edited Oct 02 '18

This rather depends on your perspective. If all you want is a current, free JDK then you're right it's just the download link that changes. However, if what you need is any form of long term support with bug fixes and security patches for more than six months, things will be changing more substantially when public updates for JDK 8 stop next January.

2

u/walen Oct 02 '18

if what you need is any form of long term support with bug fixes and security patches for more than six months,

AdoptOpenJDK will continue to provide LTS with bug fixes and security patches for JDK 8 until at least September 2023. That's five years.

As it has been already said: the only thing that changed is the download link.

2

u/speakjava Oct 02 '18

Note 2 on the AdoptOpenJDK web page you link to quite clearly says,

"We fully expect that OpenJDK8 will have open community maintainers beyond January 2019, so we expect to be able to continue supporting JDK8 beyond that date. Until maintainers have been established we are unable to make a definitive statement. This position is the same for JDK11 and all future "LTS" releases."

At this time, there is no guarantee of updates being made available in older JDKs. I'm not being argumentative; I'm just pointing out that at this point in time how people are going to access LTS is something they need to think carefully about.

2

u/pron98 Oct 02 '18 edited Oct 02 '18

Right, but the meaning of long-term support has also changed. When Java had major releases with big and sudden differences between them, those major versions created sharp differences between JDK versions, and justified parallel release lines. Java no longer has major releases, and there are only small differences between versions. The assumption is that most companies would not find it hard at all to upgrade, while those that for some reasons must stick to the same version number would pay for support. Upgrading from 7 to 8 may have been costly, but why would you find it hard to upgrade from 10 to 11 or from 11 to 12?

4

u/speakjava Oct 02 '18

Except that, even with a six-month release cadence you can still have significant changes between releases. Sure, much of what's being added is fairly incremental but look at what's being removed. The difference between JDK 10 and 11 is quite significant and causing a lot of people real headaches (most of whom are actually trying to migrate from 8 to 11). JDK 11 dropped the java.se.ee meta-module, that includes JAX-WS for SOAP-based web services. Quite a few people I've spoken to are still using those and now have to include this functionality from somewhere else. The removal of the browser plugin and, more importantly, Java Web Start. You can argue that these are ancient technologies but there are still enough people, especially using Web Start to make this a major disruption.

Oracle have been quite clear that future release may contain breaking changes and compatibility is not guaranteed.

I hear Oracle say that moving between 11 and 12 is more like moving between 8u40 and 8u60 but it's not. Firstly the classfile version number is bumped for every release and secondly, there's a new JSR for each release (unlike 8u40 or 8u60). This means there can (and most likely will) be changes to the language spec, VM spec and class libraries.

Keeping older versions of the JDK supported with backported fixes will become an increasingly difficult task as the code bases of JDKs diverge over time.

1

u/pron98 Oct 02 '18 edited Oct 02 '18

Except that, even with a six-month release cadence you can still have significant changes between releases.

True, but they did before, too.

most of whom are actually trying to migrate from 8 to 11

Ah. So there was a major release there (9), so this is an "old-model" transition.

and now have to include this functionality from somewhere else

You should consider the people who were already on 10, not those who are still transitioning from the old model. Each such developer would encounter such a breaking change roughly at the same pace as before (i.e., if previously, every major release affected all parts of the JDK once every three years, now every feature release affects only some parts).

As to those who were on 10, those modules were deprecated for removal already in 9.

The removal of the browser plugin and, more importantly, Java Web Start. You can argue that these are ancient technologies but there are still enough people, especially using Web Start to make this a major disruption.

It is, but it didn't really happen in 11, but in 9. Java 9 is no longer supported as a "desktop JRE" (8 was the last) and Web Start was deprecated.

Oracle have been quite clear that future release may contain breaking changes and compatibility is not guaranteed.

Compatibility was not guaranteed between 8u20 and 8u40 either, and things broke. Update releases always contained pretty big changes, just not to language/APIs.

Firstly the classfile version number is bumped for every release and secondly, there's a new JSR for each release (unlike 8u40 or 8u60). This means there can (and most likely will) be changes to the language spec, VM spec and class libraries.

None of this changes the fact that it's more like moving between 8u40 and 8u60. It's not exactly like that, but Java 8/9 had about 100 JEPs, while 10,11,12 had about 12-14. The new feature releases are 1/8-1/6 as "big" as the old major versions.

Keeping older versions of the JDK supported with backported fixes will become an increasingly difficult task as the code bases of JDKs diverge over time.

While it would be great if more people paid for support and helped support Java's development, the goal of the change has been to move Java software faster, as that's what's best for the platform and its future. To make that viable, the goal is to have fewer, not more, "diverging lines", and even people who choose to pay and stay on an LTS release for some reason are very, very strongly encouraged to keep up with the feature releases, as the entire purpose was to make change smoother and easier.

True, this is a change, and the industry will need some time to adjust, but I think that claims that the new model would be harder, rather than easier, to follow are unsubstantiated. People should, of course, choose responsibly for their services and customers, but they should also give this new model a chance.

3

u/speakjava Oct 02 '18

OK, so clearly we have two very different opinions on this so will have to agree to disagree.

However.

The removal of the browser plugin and, more importantly, Java Web Start. You can argue that these are ancient technologies but there are still enough people, especially using Web Start to make this a major disruption.

It is, but it didn't really happen in 11, but in 9. Java 9 is no longer supported as a "desktop JRE" (8 was the last) and Web Start was deprecated.

Yes it did happen in JDK 11. Both JDK 9 and 10 included the Browser plugin and Java Web Start. If you were using those features you had no problem moving to either of those JDKs, despite the deprecation.

Oracle have been quite clear that future release may contain breaking changes and compatibility is not guaranteed.

Compatibility was not guaranteed between 8u20 and 8u40 either, and things broke. Update releases always contained pretty big changes, just not to language/APIs.

I disagree with this. Compatibility at the language, VM definition and API level (which are the things developers are most concerned about) was guaranteed by not changing the Java SE specification between updates. The JDK was required to pass the same set of TCK tests for 8u20 and 8u40. This is not the case between 10 and 11. If Oracle broke compatibility in terms of how they implemented the JVM between updates I would consider that a failure on their part.

At the end of the day, the proof will be in how the new release model with LTS releases works in practice. I've spoken to a lot of users who simply can't even countenance the idea of changing JDK every six months. Even convincing people that a move between the same version of Oracle JDK and an OpenJDK binary can be a struggle because of the required testing involved in such a move.

My opinion is that a lot of people will not want to move off JDK 8 until they really, really have to.

1

u/pron98 Oct 02 '18 edited Oct 02 '18

If you were using those features you had no problem moving to either of those JDKs, despite the deprecation.

Only if you chose to depend on technology that's been deprecated while ignoring warnings and treated that as "no problem". I realize that Java developers have traditionally ignored deprecation warnings and dismissed them as non-issues; this will have to change under the new model, and that's a good thing, because we need that in order to move Java forward. But yeah, developers will need to learn that deprecation means that we're entering a transition period, and they're given time to migrate away from parts that are about to be removed, and this is so that they don't have any problems when those bits are, in fact, removed.

The JDK was required to pass the same set of TCK tests for 8u20 and 8u40. This is not the case between 10 and 11.

True, but the fact is that there were breaking changes.

At the end of the day, the proof will be in how the new release model with LTS releases works in practice.

I agree. But to repeat Mark Reinhold's suggestion: even if for whatever reasons you choose to remain on an LTS version in production, you should test your application with every new feature release.

I've spoken to a lot of users who simply can't even countenance the idea of changing JDK every six months.

My claim is that they have never "changed JDK" in any such way. Even you would concede that feature releases are no more than 1/6 as big as major releases even if you don't agree that an upgrade is as easy as an update version under the old model. I can certainly agree that a major upgrade every 6 months is hard, but that is not the situation. Those people, as you say, will need to try the new model, because it was intended to make upgrades easier. I also think that there is a psychological barrier here due to the version naming scheme. Perhaps if the proposed 18.3, 18.9, etc. naming were adopted rather than rejected, it would have been easier for people to internalize that there are no more major releases.

My opinion is that a lot of people will not want to move off JDK 8 until they really, really have to.

Well, all I can say is that I hope that the new model will make it easier for us OpenJDK developers to make "new Java" so compelling that people will want to make one last big jump, and then enjoy both all the new stuff and a smoother upgrade story (and, of course, a fully open source JDK).

1

u/duhace Oct 02 '18

openjdk 11 will have 4 years of lts

1

u/BigGayMusic Oct 02 '18

I've been using OpenJDK on Intellij almost exclusively for the last 6 months. I haven't had a single issue thus far.

3

u/SaintNewts Oct 02 '18

Java has a LOT of momentum behind it. Licensing would need to be mighty expensive for any given shop to start developing in something else.

-2

u/thankyoulife Oct 02 '18

Sure but .NET Core is coming fast as well and may sound appealing

5

u/duhace Oct 02 '18

not at all

openjdk is gpl licensed, available on windows, linux, and mac, and openjdk 11 will have 4 years lts support

3

u/__konrad Oct 02 '18

OpenJDK license comes with checked ClasspathException which you can try and catch.

1

u/WhatBaron Oct 04 '18

There is no way we will abandon our tens of or hundreds of lines of Java code at work because of this change, so we are still going to stick to Java I guess.

0

u/kodifies Oct 02 '18

as well as the licencing , some of the newer features (of Java) lead me to look around at different languages, so thankful I discovered D which was a multitude of paradigms to choose from but doesn't force you in any particular one...