Google is changing the Java APIs in Android from current proprietary ones to the OpenJDKset. The OpenJDK APIs are the open source version of Oracle’s Java Development Kit(JDK).
News of this was first broken by an Android commit that looked “mysterious,” according toa thread on Ycombinator. The commit documents that it was first written in February 2015, and committed in November.
In an article this week in VentureBeat, Google confirmed its next Android platform won’t implement Oracle’s proprietary Java APIs.
“As an open-source platform, Android is built upon the collaboration of the open-source community,” a Google spokesperson told VentureBeat. “In our upcoming release of Android, we plan to move Android’s Java language libraries to an OpenJDK-based approach, creating a common code base for developers to build apps and services. Google has long worked with and contributed to the OpenJDK community, and we look forward to making even more contributions to the OpenJDK project in the future.”
A discussion thread on Ycombinator’s HackerNews was rife with speculation that Google’s move toward OpenJDK is an attempt to defuse an ongoing legal battle with Oracle. After acquiring Sun Microsystems (the true father of Java) in 2010, Oracle sued Google for patent and copyright infringement over Google’s use of Java in Android.
The ensuing legal battle continues to this day, with a series of appeals winding their way through the US courts. The latest arguments mainly center upon whether Google’s use of Oracle’s Java APIs in Android constitutes fair use under US copyright law.
In 2014, Google petitioned the US Supreme Court to consider an appeal in the case, but that request was declined by the court in June 2015. The case has been punted back to the lower courts to decide whether fair use applies in this case.
Meanwhile, we’re left to wonder this move is a way for Google to hedge its bets against any potential damages that could result from an unfavorable court ruling. Basing future versions of Android on OpenJDK, rather than Oracle’s proprietary JDK, is seen by casual observers as a way for Google to future-proof its Android operating system.