Google opts for OpenJDK over Oracle’s Java


Google told that in “Android N,” the next major version of Android, it is swapping Android’s Java libraries from its own Apache Harmony-based implementation to one based on Oracle’s OpenJDK—yes that Oracle, the same company suing Google. OpenJDK is the “official” open source version of the Java Platform, and Oracle makes it available under the GPL with a linking exception.

Android will move to Hotspot/JIT

That’s unlikely. Java compatibility and compliance with OpenJDK doesn’t require that you use the JIT that ships with it or any of its source code for that matter. Quite a few compliant implementations don’t.
While Hotspot will probably beat ART for anything other than startup time performance on mobile is quite different than desktop performance. Battery life is more crucial than speed and I doubt hotspot is optimized for that.

Swing/AWT/FX Will Finally Be Supported On Android

There is no indication of that and it seems very unlikely.
Google can be Java compliant by supporting a subset of Java and this is even easier thank to the modularity changes in Java 9. Swing/AWT/FX compliance complicate this whole process to a completely different level.

Google Was At Fault

There were several claims like this e.g. Google copied code etc.
I don’t like the fact that Android isn’t Java compatible and forked, but I generally disagree with that statement. It might have been wrong “morally” to fork Java, but I don’t think it was wrong legally. In the discovery phase of the trial only one small method was shown to be a direct copy and the judge dismissed that as ridiculous.
Google didn’t violate the trademarks of Java and the coffee cup which are an important tool to keep Java clean. E.g. they never claimed that Android runs Java, it runs Android/Dalvik and now ART. It compiles Java source code which is a big leap.
The claim is about copyrighting the API, that’s a problematic claim since Google did use a clean room implementation of the public API’s. The supreme court effectively said that clean room implementations of public API’s are illegal!

That’s a pretty bad thing since copyright is implicit. Its owned even if the person publishing the material doesn’t explicitly write that little (c) you see next to various types of work. So if you ever implemented an API you are now effectively using copyrighted code!

Most programmers who understand this think that Google acted based on “fair use” which means they didn’t actually violate the rights of the copyright holder.

Oracle is a greedy litigious company

Not really.
Oracle does sue companies but generally larger companies that can afford this, I’m unaware of them suing a startup or other small companies (feel free to correct me if I’m wrong here). It is far more profit driven than Sun was. I really loved Sun and loved working there, I can’t say the same about Oracle…
But to be totally fair, Sun no longer exists in part because it was mismanaged and maybe not “greedy” enough. Having a strong “landlord” for Java might be disturbing in some regards but it has its advantages. I think anyone trying to show Oracle off as “evil” is plain wrong.

This is like the Microsoft Lawsuit

Microsoft was a Java licensee and took the code to create a non-compliant implementation. Google was a licensee but the Android division was not. The fact that Google was a licensee for Java didn’t factor into the trial to my non-lawyer knowledge.

This is about Java Compatibility

While Java compatibility is important and Google did do some damage there (not as much as the lawsuit did but still), this wasn’t the reason for the case.
The lawsuit originally mentioned a 6bn USD figure for compensation and Google was willing to pay 100M USD to settle… This was like most lawsuits are about money.
Its not necessarily bad to sue about money but this clearly cost more than it should have for both sides as it hurt Java in the market and that hurt two of its biggest users (Oracle & Google). Sun used to make a per device license fee for every J2ME phone sold, that was a huge bucket of money. I think Sun lost that revenue stream because it just neglected to update J2ME for more than a decade and when it finally did it was way too late.

Is This Good For Java?

Yes. Without a question!
Some claim the lawsuit should have been decisively won by Google, I think that would have been great because as stated above I don’t think the copyright clause is good for the industry as a whole. But that ship has sailed and now the best thing for Java is ending the hostility and unifying behind one standard Java so its great.

Furthermore, ending this hostility means Java proved its chops in court which is a huge milestone. Developers often have the justify-able backlash when the legal system is involved choosing to go with a technology that’s more open (e.g. WebAssembly). Technologies like that might have hidden elements that can be sued over that we aren’t even aware of e.g. just using a GIF file was ground for legal action a few years ago…
This is problematic with more open standards as there isn’t a single “landlord” to carry the technology forward in such a court case.

Java has seen quite a few days in court and one of the nice things about OpenJDK is that it includes a patent license provision. This is rare and really valuable, if Google and Oracle settle over OpenJDK it pretty much means we can all align behind it peacefully and litigation would become far less likely.

Furthermore, I think this would be great for Android as it will eventually move to a newer more modern version of Java and might enjoy better tooling as a result. It would also mean that some optimizations that might have been avoided by Android’s Runtime due to potential patent litigation might be applied to ART leading to additional benefits.

The reduced stress among Google developers about IP cleanliness could also boost the productivity at Google and allow the Android developers to focus on building a better product.

About Deepak Devanand

Seeker of knowledge
This entry was posted in Android, Google and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s