Android N to ditch Oracle’s proprietary Java APIs for OpenJDK

You can’t develop the world’s top mobile operating system without getting into a few legal tussles. Google has been embroiled in a complex lawsuit with Oracle over the Java programming language since 2010. The case centers on whether or not Google infringed on Oracle’s copyright when it copied sections of the Java APIs in Android. Now, Google has confirmed that it will be doing away with all the standard Java APIs in the next version of Android. Instead, it will use only the open source OpenJDK.



The ongoing battle between Oracle and Google has been messy, to say the least. It all goes back to the way Java APIs (Application Programming Interfaces) are used in Android. If you want programs to communicate with each other, you need an API, and Oracle thinks it should be able to copyright those. Computer scientists tend to disagree because APIs are essential for interoperability.

Android apps are mostly written in Java, then compiled by the operating system to native code and run. The part of the system that handles this used to be known as Dalvik virtual machine, but has since been replaced by the more efficient ART (Android Runtime). Most of the code in Google’s VM is original (Google says it’s about 97%), but it still uses Oracle’s Java APIs.

This has been a sticking point for the last few years. After a jury found in favor of Google, a appeals court mostly reversed that judgment. A petition for the Supreme Court to hear the case was rejected earlier this year, and the case now sits at a lower court waiting to decide on Google’s fair use argument. In the meantime, Google is making sure this isn’t an issue going forward.

article2-arch

Because Android is open source (Java is mostly open as well), you can see all the code commits to the Android Open Source Project (AOSP). Some developers noticed a large change pop up the other day that affects 8,902 files. Further digging revealed that it was related to the Java APIs in Android. When asked about this, Google confirmed that it is moving away from the standard Java implementation and will instead use OpenJDK.

Google didn’t mention the case against Oracle, but it seems clear that’s the reason for the change. Google claims using the OpenJDK will create a common code base for developers. It also has the benefit of being completely open source and not controlled by the overly litigious Oracle. Even if Google wins the fair use argument, that doesn’t mean future fair use arguments would hold up. It’s best to just move away from Oracle’s platform.
< Google says the switch to OpenJDK will take place in the N release of Android. That’s expected to happen at some point in 2016. That doesn’t change anything about the current legal battle. If the court finds that Java APIs aren’t covered by fair use, Google might end up paying out a large pile of cash to Oracle.

Source link

This article has 5 comments

  1. free v bucks generator Reply

    Heya i’m for the first time here. I found this board and I find It really useful & it helped me out much. I hope to give something back and aid others like you aided me.|

  2. v bucks generator Reply

    You’ve made some really good points there. I checked on the net
    for additional information about the issue and found most people will go along
    with your views on this site.

  3. Fortnite Account Generator Reply

    First off I would like to say great blog! I had a quick question that I’d like to
    ask if you don’t mind. I was interested
    to know how you center yourself and clear your thoughts prior to writing.
    I have had a tough time clearing my thoughts in getting my
    ideas out. I truly do enjoy writing but it just seems like the first 10 to 15 minutes are wasted
    simply just trying to figure out how to begin. Any suggestions or tips?
    Appreciate it!

    • Nauman Zubair Reply

      @Fortnite Account Generator You should start writing more and more articles, slowly you will learn this trick of writing short to-the-point blogs easily.

Leave a Comment

Your email address will not be published. Required fields are marked *